Skip to content

Commit bede84a

Browse files
authored
Fix conditional rendering of navItems in NavBar
Is this breaking the build with navItems?.length > 0 && Signed-off-by: Igor Rodrigues Machado <[email protected]>
1 parent e07127b commit bede84a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/ui-components/src/Containers/NavBar

packages/ui-components/src/Containers/NavBar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ const NavBar: FC<PropsWithChildren<NavbarProps>> = ({
7373
aria-label={sidebarItemTogglerAriaLabel}
7474
tabIndex={-1}
7575
/>
76-
76+
7777
<div className={classNames(styles.main, `hidden peer-checked:flex`)}>
78-
{navItems?.length > 0 && (
78+
{navItems && navItems.length > 0 &&(
7979
<div className={styles.navItems}>
8080
{navItems.map(({ text, link, target }) => (
8181
<NavItem

0 commit comments

Comments
 (0)