Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Jul 26, 2024
1 parent 98fa608 commit 5d0fd38
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,13 @@ export class NavigationConfigConverter {
changelog: (changelog) =>
ChangelogNavigationConverter.convert(changelog, this.noindexMap, parentSlug, this.#idgen),
// Note: apiSection.node is imported from `navigation`, and is guaranteed to be a FernNavigation.ApiReferenceNode
apiV2: (apiSection) => apiSection.node as unknown as FernNavigation.ApiReferenceNode,
apiV2: (apiSection) => {
const node = apiSection.node as unknown as FernNavigation.ApiReferenceNode;
if (this.disableLongScrolling) {
node.disableLongScrolling = true;
}
return node;
},
changelogV3: (changelog) => changelog.node as unknown as FernNavigation.ChangelogNode,
_other: (value) => assertNever(value as never),
});
Expand Down

0 comments on commit 5d0fd38

Please sign in to comment.