diff --git a/frontend/src/lib/components/apps/editor/SettingsPanel.svelte b/frontend/src/lib/components/apps/editor/SettingsPanel.svelte index 5fc3571cc2..f7eb58f6be 100644 --- a/frontend/src/lib/components/apps/editor/SettingsPanel.svelte +++ b/frontend/src/lib/components/apps/editor/SettingsPanel.svelte @@ -81,23 +81,25 @@ {/key} {:else if hiddenInlineScript} {@const id = BG_PREFIX + hiddenInlineScript.index} - + {#key id} + - {#if Object.keys(hiddenInlineScript.script.fields ?? {}).length > 0} -
- - {#key $stateId} - - {/key} - -
- {/if} - -
+ {#if Object.keys(hiddenInlineScript.script.fields ?? {}).length > 0} +
+ + {#key $stateId} + + {/key} + +
+ {/if} + +
+ {/key} {/if}