Skip to content

Commit

Permalink
Merge pull request #7 from Joery-M/6-sl-ui-not-being-sent-to-editor-a…
Browse files Browse the repository at this point in the history
…fter-creating-simpleproject

fix: Added await toEditor()
  • Loading branch information
Joery-M authored Apr 18, 2024
2 parents 856e1e8 + d8cce36 commit 71987f2
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 71987f2

Please sign in to comment.