From 493d2012a81e2d79ed1b3561a07cb5f8fd9fb9dd Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 29 Feb 2024 12:39:41 +0100 Subject: [PATCH] fix: app forms change value on default value changes --- .../lib/components/LightweightArgInput.svelte | 40 +++++++++++-------- .../components/LightweightSchemaForm.svelte | 1 + .../InlineScriptEditorPanel.svelte | 4 +- .../InlineScriptHiddenRunnable.svelte | 4 +- 4 files changed, 29 insertions(+), 20 deletions(-) diff --git a/frontend/src/lib/components/LightweightArgInput.svelte b/frontend/src/lib/components/LightweightArgInput.svelte index 9ac2fc0c94..c9def2458d 100644 --- a/frontend/src/lib/components/LightweightArgInput.svelte +++ b/frontend/src/lib/components/LightweightArgInput.svelte @@ -1,7 +1,7 @@
diff --git a/frontend/src/lib/components/LightweightSchemaForm.svelte b/frontend/src/lib/components/LightweightSchemaForm.svelte index 975efcfed7..6545488b3b 100644 --- a/frontend/src/lib/components/LightweightSchemaForm.svelte +++ b/frontend/src/lib/components/LightweightSchemaForm.svelte @@ -42,6 +42,7 @@ } function reorder() { + console.log('reorder') if (schema?.order && Array.isArray(schema.order)) { const n = {} diff --git a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte index fac3714bf0..aa375003b7 100644 --- a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte +++ b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte @@ -49,9 +49,9 @@ }} /> {:else} - +
Selected editor component is a transformer but component has no transformer - +
{/if} {:else if componentInput?.type == 'runnable'} {#if componentInput?.runnable?.type === 'runnableByName' && componentInput?.runnable?.name !== undefined} diff --git a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptHiddenRunnable.svelte b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptHiddenRunnable.svelte index 69e1769c3b..3a04c55389 100644 --- a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptHiddenRunnable.svelte +++ b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptHiddenRunnable.svelte @@ -43,9 +43,9 @@ }} /> {:else} - +
Selected editor component is a transformer but component has no transformer - +
{/if} {:else if runnable?.type === 'runnableByName' && runnable.inlineScript}