Skip to content

Commit 049c356

Browse files
committed
fix: revert navDirFromPath behavior
1 parent 908388b commit 049c356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/composables/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const navBottomLink = (link: NavItem): string | undefined => {
1717
*/
1818
const navDirFromPath = (path: string, tree: NavItem[]): NavItem[] | undefined => {
1919
for (const file of tree) {
20-
if (file._path === path && !file._id) { return tree }
20+
if (file._path === path && !file._id) { return file.children }
2121

2222
if (file.children) {
2323
const result = navDirFromPath(path, file.children)

0 commit comments

Comments
 (0)