diff --git a/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte b/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte index caf68e40ea..0d4f4ffe9c 100644 --- a/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte +++ b/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte @@ -7,7 +7,7 @@ const isChildAllowed = ({ name }, selectedComponent) => { const currentComponent = store.actions.components.getDefinition( - selectedComponent._component + selectedComponent?._component ) return currentComponent?.illegalChildren?.includes(name)