Two hot fixes

This commit is contained in:
Misode
2024-11-27 17:06:37 +01:00
parent aef57e7f00
commit 11484df930
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -166,6 +166,9 @@ export function getProjectRoot(project: ProjectMeta) {
if (project.storage?.type === 'indexeddb') {
return project.storage.rootUri
}
if (project.name === DRAFT_PROJECT.name) {
return DRAFTS_URI
}
throw new Error(`Unsupported project storage ${project.storage?.type}`)
}