diff --git a/src/ScriptEditor/ui/ScriptEditorRoot.tsx b/src/ScriptEditor/ui/ScriptEditorRoot.tsx index 0c51f506a..1d4653dd4 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -668,6 +668,7 @@ export function Root(props: IProps): React.ReactElement { // No more scripts are open setOpenScripts([]); setCurrentScript(null); + props.router.toTerminal(); } }