Fix double empty state around blocks

This commit is contained in:
Andrew Kingston 2022-10-14 18:59:32 +01:00
parent 4c2a0028d6
commit 1b08e88c6f
1 changed files with 3 additions and 2 deletions

View File

@ -135,8 +135,9 @@
// Empty states can be shown for these components, but can be disabled // Empty states can be shown for these components, but can be disabled
// in the component manifest. // in the component manifest.
$: empty = $: empty =
(interactive && !children.length && hasChildren) || !isBlock &&
hasMissingRequiredSettings ((interactive && !children.length && hasChildren) ||
hasMissingRequiredSettings)
$: emptyState = empty && showEmptyState $: emptyState = empty && showEmptyState
// Enrich component settings // Enrich component settings