From 08de0812fc2e0e479ce918266559de418316dff8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 13 Oct 2020 08:12:29 +0100 Subject: [PATCH] Fix another random builder crash that sometimes happens --- .../builder/src/components/userInterface/SettingsView.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/userInterface/SettingsView.svelte b/packages/builder/src/components/userInterface/SettingsView.svelte index 233fa08031..bae1b364c9 100644 --- a/packages/builder/src/components/userInterface/SettingsView.svelte +++ b/packages/builder/src/components/userInterface/SettingsView.svelte @@ -117,7 +117,7 @@ control={definition.control} label={definition.label} key={definition.key} - value={componentInstance[definition.key] || componentInstance[definition.key].defaultValue} + value={componentInstance[definition.key] || componentInstance[definition.key]?.defaultValue} {componentInstance} {onChange} props={{ ...excludeProps(definition, ['control', 'label']) }} />