Skip to content

Commit

Permalink
fix: Fix Cannot read properties of undefined (reading 'some') #23821
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Sep 2, 2024
1 parent 64222d2 commit 557b17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export default class Publish extends Extension {
}
}

const scenesChanged = Object.values(usedConverters).some((cl) => cl.some((c) => c.key.some((k) => sceneConverterKeys.includes(k))));
const scenesChanged = Object.values(usedConverters).some((cl) => cl.some((c) => c.key?.some((k) => sceneConverterKeys.includes(k))));
if (scenesChanged) {
this.eventBus.emitScenesChanged({entity: re});
}
Expand Down

0 comments on commit 557b17a

Please sign in to comment.