Skip to content

Commit

Permalink
fix: hidden pages should be ignored in computing up-next
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed May 23, 2024
1 parent f5a78af commit b432045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/commons/fdr-utils/src/traverser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function visitPage(
if (matchCurrentNode(currentNode, page)) {
traverseState.curr = page;
traverseState.sectionTitleBreadcrumbs = sectionTitleBreadcrumbs;
} else {
} else if (!page.hidden) {
traverseState.prev = page;
}
} else {
} else if (!page.hidden) {
traverseState.next = page;
}

Expand Down

0 comments on commit b432045

Please sign in to comment.