diff --git a/frontend/src/lib/components/apps/editor/contextPanel/ContextPanel.svelte b/frontend/src/lib/components/apps/editor/contextPanel/ContextPanel.svelte index fafc2a6775..137aaa3449 100644 --- a/frontend/src/lib/components/apps/editor/contextPanel/ContextPanel.svelte +++ b/frontend/src/lib/components/apps/editor/contextPanel/ContextPanel.svelte @@ -57,7 +57,9 @@ [newScriptPath]: inlineScript } } - closeDrawer() + scriptCreationDrawer?.closeDrawer?.() + selectedScript = inlineScript + scriptEditorDrawer.openDrawer?.() } function afterCreateScript() { @@ -71,16 +73,10 @@ let scriptEditorDrawer: Drawer let scriptCreationDrawer: Drawer | undefined = undefined - - function closeDrawer() { - if (scriptEditorDrawer.closeDrawer) { - scriptEditorDrawer.closeDrawer() - } - } - +
@@ -104,7 +100,12 @@ - + {#if selectedScript}