Null safety

This commit is contained in:
Mel O'Hagan 2023-02-15 08:45:48 +00:00
parent 8c55cafbd8
commit 53de83986e
1 changed files with 3 additions and 3 deletions

View File

@ -174,11 +174,11 @@
// Determine whether we should render a skeleton loader for this component
$: showSkeleton =
$loading &&
definition.name !== "Screenslot" &&
definition?.name !== "Screenslot" &&
children.length === 0 &&
!instance._blockElementHasChildren &&
!definition.block &&
definition.skeleton !== false
!definition?.block &&
definition?.skeleton !== false
// Update component context
$: store.set({