Skip to content

Commit

Permalink
Fixed: Bookmarks search: Show folders at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Mar 20, 2022
1 parent 6d7350c commit bce679d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/search.bookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function searchTreeWalker(
if (n.title && !n.url && n.parentId !== BKM_ROOT_ID && Search.check(n.title)) {
if (n.expanded) n.expanded = false
folders[n.id] = n
filtered.push(n)
filtered.unshift(n)
}
if (n.children) searchTreeWalker(n.children, filtered, folders)
}
Expand Down

0 comments on commit bce679d

Please sign in to comment.