Null safety
This commit is contained in:
parent
8c55cafbd8
commit
53de83986e
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue