diff --git a/frontend/src/lib/components/triggers/RouteEditorInner.svelte b/frontend/src/lib/components/triggers/RouteEditorInner.svelte index 2fa7998295..19846e5c24 100644 --- a/frontend/src/lib/components/triggers/RouteEditorInner.svelte +++ b/frontend/src/lib/components/triggers/RouteEditorInner.svelte @@ -28,6 +28,7 @@ let script_path = '' let initialScriptPath = '' + let fixedScriptPath = '' let drawerLoading = true export async function openEdit(ePath: string, isFlow: boolean) { @@ -46,7 +47,7 @@ } } - export async function openNew(nis_flow: boolean, initial_script_path?: string) { + export async function openNew(nis_flow: boolean, fixedScriptPath_?: string) { drawerLoading = true try { drawer?.openDrawer() @@ -58,8 +59,9 @@ initialRoutePath = '' route_path = '' http_method = 'post' - initialScriptPath = initial_script_path ?? '' - script_path = initialScriptPath + initialScriptPath = '' + fixedScriptPath = fixedScriptPath_ ?? '' + script_path = fixedScriptPath path = '' initialPath = '' dirtyPath = false @@ -282,8 +284,8 @@