Fix crash when component definition is not found

This commit is contained in:
Andrew Kingston 2021-11-18 14:24:10 +00:00
parent 5f5ca5fdf7
commit 347a0d1d0f
1 changed files with 1 additions and 1 deletions

View File

@ -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