We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 908388b commit 049c356Copy full SHA for 049c356
src/runtime/composables/helpers.ts
@@ -17,7 +17,7 @@ const navBottomLink = (link: NavItem): string | undefined => {
17
*/
18
const navDirFromPath = (path: string, tree: NavItem[]): NavItem[] | undefined => {
19
for (const file of tree) {
20
- if (file._path === path && !file._id) { return tree }
+ if (file._path === path && !file._id) { return file.children }
21
22
if (file.children) {
23
const result = navDirFromPath(path, file.children)
0 commit comments