Skip to content

Commit

Permalink
fix: $workspace can be unset
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen committed Sep 28, 2024
1 parent a55d8ed commit 5203333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/core/header/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5203333

Please sign in to comment.