From d8cce36d3218116718596c69210877f724278cc8 Mon Sep 17 00:00:00 2001 From: Joery Date: Thu, 18 Apr 2024 16:49:59 +0200 Subject: [PATCH] fix: Added await toEditor() --- packages/safelight/src/stores/useProject.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/safelight/src/stores/useProject.ts b/packages/safelight/src/stores/useProject.ts index 9a1d9b20..f6b6f286 100644 --- a/packages/safelight/src/stores/useProject.ts +++ b/packages/safelight/src/stores/useProject.ts @@ -75,6 +75,8 @@ async function newSimpleProject() { const projectStore = useProject(); const SimpleProject = (await import('@safelight/shared/Project/SimpleProject')).default; projectStore.setProject(new SimpleProject()); + + await toEditor(); } async function openProject(selectedProject: StoredProject) {