fix script drawer editor extra config

This commit is contained in:
Ruben Fiszel
2023-11-22 00:25:46 +01:00
parent 050daee33d
commit 9ee4ffef39
2 changed files with 3 additions and 8 deletions
@@ -227,7 +227,6 @@
path: initialPath
})
let createScheduleAfterFlow = false
if (scheduleExists) {
const schedule = await ScheduleService.getSchedule({
workspace: $workspaceStore ?? '',
@@ -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)