Fix empty root shown as missing folder

This commit is contained in:
2026-05-05 02:26:41 +00:00
parent 2864e9f041
commit 1b2267587f
+1
View File
@@ -5,6 +5,7 @@ export const exists = (path: string[]) => {
const store = useMainStore()
// Access docVersion to make this reactive
void store.docVersion
if (path.length === 0) return true
const p = path.join('/')
return getDocuments().some(
doc => (doc.loc ? `${doc.loc}/${doc.name}` : doc.name) === p