diff --git a/packages/client/src/components/Component.svelte b/packages/client/src/components/Component.svelte index 57fbc10d93..a4ee290028 100644 --- a/packages/client/src/components/Component.svelte +++ b/packages/client/src/components/Component.svelte @@ -78,7 +78,7 @@ $builderStore.inBuilder && ($builderStore.previewType === "layout" || insideScreenslot) && !isBlock - $: editable = definition.editable + $: editable = definition?.editable $: editing = editable && selected && $builderStore.editMode $: draggable = !inDragPath && interactive && !isLayout && !isScreen $: droppable = interactive && !isLayout && !isScreen