Skip to content

Commit

Permalink
Upgrade draft project to hardcoded drafts uri
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Nov 27, 2024
1 parent b1c8bba commit 8288397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/contexts/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8288397

Please sign in to comment.