From 5203333b725bca6e7c1341e689b0614462f8fe95 Mon Sep 17 00:00:00 2001 From: Ronald Moesbergen Date: Sat, 28 Sep 2024 16:07:28 +0200 Subject: [PATCH] fix: $workspace can be unset --- src/lib/components/core/header/Header.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }