refactor(editor): Fix typescript issues in composables and misc files (no-changelog) (#9583)

This commit is contained in:
Elias Meire
2024-06-03 11:34:51 +02:00
committed by GitHub
parent 7be616e583
commit 6268276746
19 changed files with 90 additions and 58 deletions

View File

@@ -431,11 +431,11 @@ export default defineComponent({
: `$('${escapeMappingString(nodeName)}').item.binary`;
const binaryData = [];
let binaryPropertyData = [];
let binaryPropertyData: IVariableSelectorOption[] = [];
for (const dataPropertyName of Object.keys(outputData.binary!)) {
for (const dataPropertyName of Object.keys(outputData.binary ?? {})) {
binaryPropertyData = [];
for (const propertyName in outputData.binary![dataPropertyName]) {
for (const propertyName in outputData.binary?.[dataPropertyName]) {
if (propertyName === 'data') {
continue;
}
@@ -448,7 +448,7 @@ export default defineComponent({
binaryPropertyData.push({
name: propertyName,
key: `${binaryPropertyPrefix}.${dataPropertyName}.${propertyName}`,
value: outputData.binary![dataPropertyName][propertyName],
value: outputData.binary?.[dataPropertyName][propertyName]?.toString(),
});
}