Skip to content

Commit

Permalink
manipulate nav node children for dashboards and assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Mar 4, 2025
1 parent d744538 commit adaf98f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ const createNodeFromSolutionNavLink = (solutionNavLink: SolutionNavLink): NodeDe
...(isBreadcrumbHidden(id) && { breadcrumbStatus: 'hidden' }),
...(disabled && { sideNavStatus: 'hidden' }),
};
if (links?.length) {
// do not create child nav nodes for "Dashboards"
if (links?.length && id !== 'dashboards') {
node.children = formatNodesFromLinks(links, categories);
}
return node;
Expand Down

0 comments on commit adaf98f

Please sign in to comment.