From 0a37be41cbf7d705bb9b371a31f1e4c067844e72 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 10 Feb 2024 09:47:26 +0100 Subject: [PATCH] fix: improve load schedule args --- frontend/src/lib/components/ScheduleEditorInner.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/ScheduleEditorInner.svelte b/frontend/src/lib/components/ScheduleEditorInner.svelte index 6b948094f6..53a897c305 100644 --- a/frontend/src/lib/components/ScheduleEditorInner.svelte +++ b/frontend/src/lib/components/ScheduleEditorInner.svelte @@ -94,7 +94,7 @@ path = initialScriptPath initialPath = initialScriptPath script_path = initialScriptPath - loadScript(script_path) + await loadScript(script_path) if (defaultErrorHandlerMaybe !== undefined && defaultErrorHandlerMaybe !== null) { wsErrorHandlerMuted = defaultErrorHandlerMaybe['wsErrorHandlerMuted'] @@ -242,7 +242,7 @@ timezone = s.timezone summary = s.summary ?? '' script_path = s.script_path ?? '' - loadScript(script_path) + await loadScript(script_path) is_flow = s.is_flow no_flow_overlap = s.no_flow_overlap ?? false