Skip to content

Commit

Permalink
changed nav tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laura-rubio committed Jun 29, 2024
1 parent a6d7704 commit 9cf5d45
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 722 deletions.
2 changes: 1 addition & 1 deletion plugins/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function convert(
? Object.values(temp.children)
.map((child) => convert(child, order, data))
.sort((a, b) => {
if (a.data && b.data && order) {
if (a.data && b.data) {
return order(a.data, b.data);
}
return a.slug < b.slug ? -1 : 1;
Expand Down
Loading

0 comments on commit 9cf5d45

Please sign in to comment.