diff --git a/src/app/contexts/Project.tsx b/src/app/contexts/Project.tsx index fd59473e..3c89afcc 100644 --- a/src/app/contexts/Project.tsx +++ b/src/app/contexts/Project.tsx @@ -81,7 +81,7 @@ export function ProjectProvider({ children }: { children: ComponentChildren }) { } if (project.storage === undefined) { try { - const projectRoot = `${PROJECTS_URI}${hexId()}/` + const projectRoot = project.name === DRAFT_PROJECT.name ? DRAFTS_URI : `${PROJECTS_URI}${hexId()}/` console.log(`Upgrading project ${openProject} to IndexedDB at ${projectRoot}`) await SpyglassClient.FS.mkdir(projectRoot) if (project.files) {