Skip to content

Commit

Permalink
fix: strip hidden titles in api playground (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Jun 4, 2024
1 parent d2c3f08 commit 91275ed
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ export function flattenApiSection(root: FernNavigation.SidebarRootNode): ApiGrou
return;
}

const breadcrumbs = [...parents, node].filter(FernNavigation.isSection).map((parent) => parent.title);
const breadcrumbs = [...parents, node]
.filter(FernNavigation.isSection)
.filter((n) => {
if (n.type === "apiReference") {
return n.hideTitle !== true;
}
return true;
})
.map((parent) => parent.title);
result.push({
api: node.apiDefinitionId,
id: node.id,
Expand Down

0 comments on commit 91275ed

Please sign in to comment.