From 347a0d1d0fc30bfea4c3d34ff69e70cfffd46d25 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 18 Nov 2021 14:24:10 +0000 Subject: [PATCH] Fix crash when component definition is not found --- packages/client/src/components/Component.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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