From 9ee4ffef392ad364c4868ae3036a68bcc0f7c70a Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 22 Nov 2023 00:25:46 +0100 Subject: [PATCH] fix script drawer editor extra config --- frontend/src/lib/components/FlowBuilder.svelte | 1 - .../components/flows/content/ScriptEditorDrawer.svelte | 10 +++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/FlowBuilder.svelte b/frontend/src/lib/components/FlowBuilder.svelte index edab9ebd79..8ed507ffb7 100644 --- a/frontend/src/lib/components/FlowBuilder.svelte +++ b/frontend/src/lib/components/FlowBuilder.svelte @@ -227,7 +227,6 @@ path: initialPath }) - let createScheduleAfterFlow = false if (scheduleExists) { const schedule = await ScheduleService.getSchedule({ workspace: $workspaceStore ?? '', diff --git a/frontend/src/lib/components/flows/content/ScriptEditorDrawer.svelte b/frontend/src/lib/components/flows/content/ScriptEditorDrawer.svelte index 0a9d012d4a..3f5b303657 100644 --- a/frontend/src/lib/components/flows/content/ScriptEditorDrawer.svelte +++ b/frontend/src/lib/components/flows/content/ScriptEditorDrawer.svelte @@ -45,6 +45,7 @@ kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval' | undefined envs?: string[] ws_error_handler_muted?: boolean + dedicated_worker?: boolean } | undefined = undefined @@ -79,17 +80,12 @@ await ScriptService.createScript({ workspace: $workspaceStore!, requestBody: { - path: script.path, - summary: script.summary, + ...script, description: script.description ?? '', - content: script.content, parent_hash: script.hash != '' ? script.hash : undefined, - schema: script.schema, is_template: false, - language: script.language, kind: script.kind as Script.kind | undefined, - envs: script.envs, - ws_error_handler_muted: script.ws_error_handler_muted + lock: undefined } }) savedScript = cloneDeep(script)