diff --git a/src/runtime/composables/helpers.ts b/src/runtime/composables/helpers.ts index 975b6bde6..9c89d5746 100644 --- a/src/runtime/composables/helpers.ts +++ b/src/runtime/composables/helpers.ts @@ -17,7 +17,7 @@ const navBottomLink = (link: NavItem): string | undefined => { */ const navDirFromPath = (path: string, tree: NavItem[]): NavItem[] | undefined => { for (const file of tree) { - if (file._path === path && !file._id) { return tree } + if (file._path === path && !file._id) { return file.children } if (file.children) { const result = navDirFromPath(path, file.children)