mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 01:23:32 -06:00
Navigation: show section toggle if there are any react children (#60336)
show section toggle if there are children
This commit is contained in:
parent
3cfeac9c5a
commit
b2da0d22af
@ -56,7 +56,7 @@ export function NavBarMenuSection({
|
||||
{getNavTitle(link.id) ?? link.text}
|
||||
</div>
|
||||
</NavBarMenuItem>
|
||||
{Boolean(link.children?.length) && (
|
||||
{children && (
|
||||
<Button
|
||||
aria-label={`${sectionExpanded ? 'Collapse' : 'Expand'} section`}
|
||||
variant="secondary"
|
||||
|
Loading…
Reference in New Issue
Block a user