Skip to content

Commit

Permalink
fix: Added await toEditor()
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery committed Apr 18, 2024
1 parent 856e1e8 commit d8cce36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/safelight/src/stores/useProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8cce36

Please sign in to comment.