From ef17fd0f5ea02df218200709f742de2c5ae4cc76 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 30 Jan 2024 20:42:40 +0100 Subject: [PATCH] fix: improve array static editor --- .../apps/editor/settingsPanel/ArrayStaticInputEditor.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte index f0672a0c54..2c3c1bb5c3 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte @@ -156,17 +156,17 @@ } else { value.push('') } - componentInput = componentInput if (componentInput.value) { let value = componentInput.value[componentInput.value.length - 1] - if (value) { + if (value != undefined) { items.push({ value, id: generateRandomString() }) } } + componentInput = componentInput } function deleteElementByType(index: number) {