From 2c0d07a453b99148cbc821af6b0573f4fe7352e2 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 29 Mar 2023 22:01:05 +0200 Subject: [PATCH] fix flow connection --- .../editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte index da6bda4f67..8551a103d7 100644 --- a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte +++ b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptEditorPanel.svelte @@ -14,7 +14,7 @@ faRefresh } from '@fortawesome/free-solid-svg-icons' import type { AppInput, RunnableByPath } from '../../inputType' - import { clearResultAppInput, loadSchema, schemaToInputsSpec } from '../../utils' + import { clearResultAppInput, loadSchema } from '../../utils' import EmptyInlineScript from './EmptyInlineScript.svelte' import InlineScriptEditor from './InlineScriptEditor.svelte' import { computeFields } from './utils' @@ -70,10 +70,9 @@ const schema = (await loadSchema($workspaceStore ?? '', x.path, 'flow')) ?? emptySchema() x.schema = schema if (componentInput?.type == 'runnable') { - componentInput.fields = schemaToInputsSpec(schema, defaultUserInput) + componentInput.fields = computeFields(schema, false, componentInput.fields) } componentInput = componentInput - console.log('refreshFlow', componentInput) } $: if ( componentInput &&