mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Core: Fix wrong indexing of file system
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-core': patch
|
||||
---
|
||||
|
||||
Fix wrong indexing of file system
|
||||
@@ -43,7 +43,7 @@ export class FileSystem<File> {
|
||||
if (this.folders.has(segment)) continue;
|
||||
|
||||
this.folders.set(segment, []);
|
||||
this.readDir(dirname(segment))?.push(path);
|
||||
this.folders.get(dirname(segment))!.push(segment);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user