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 // Determine whether we should render a skeleton loader for this component
$: showSkeleton = $: showSkeleton =
$loading && $loading &&
definition.name !== "Screenslot" && definition?.name !== "Screenslot" &&
children.length === 0 && children.length === 0 &&
!instance._blockElementHasChildren && !instance._blockElementHasChildren &&
!definition.block && !definition?.block &&
definition.skeleton !== false definition?.skeleton !== false
// Update component context // Update component context
$: store.set({ $: store.set({