diff --git a/src/lib/components/core/header/Header.svelte b/src/lib/components/core/header/Header.svelte index 7760c75..6f742f4 100644 --- a/src/lib/components/core/header/Header.svelte +++ b/src/lib/components/core/header/Header.svelte @@ -90,7 +90,7 @@ async function connect() { async function newProject() { popups.clear(); willRestore.set(false); - $workspace.clear(); + if ($workspace) $workspace.clear(); screen.set(Screen.START); }