From a2e4f44e7fa12a5d398c343d76ce9f99ebc480e4 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 17 Aug 2021 14:10:25 +0100 Subject: [PATCH] Ensure placeholder is null when undefined so avoid sometimes having a placeholder and sometimes not --- .../design/PropertiesPanel/ComponentSettingsSection.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte b/packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte index c8e23cc535..9ec1108985 100644 --- a/packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte @@ -71,7 +71,7 @@ /> {/if} {#if settings && settings.length > 0} - {#each settings as setting} + {#each settings as setting (setting.key)} {#if canRenderControl(setting)} updateProp(setting.key, val)} props={{ - options: setting.options, - placeholder: setting.placeholder, + options: setting.options || [], + placeholder: setting.placeholder || null, }} {bindings} {componentDefinition}