Skip to content

Commit 16ef5ff

Browse files
fix(navigation): remove nullish coalescing for label prop
1 parent 6909aa2 commit 16ef5ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/packages/chrome/navigation/src/components/navigation.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const Navigation = ({
134134
{(closePopover) => (
135135
<SecondaryMenu title={item.label} badgeType={item.badgeType}>
136136
{sections?.map((section) => (
137-
<SecondaryMenu.Section key={section.id} label={section.label ?? null}>
137+
<SecondaryMenu.Section key={section.id} label={section.label}>
138138
{section.items.map((subItem) => (
139139
<SecondaryMenu.Item
140140
key={subItem.id}
@@ -235,7 +235,7 @@ export const Navigation = ({
235235
{item.sections?.map((section) => (
236236
<NestedSecondaryMenu.Section
237237
key={section.id}
238-
label={section.label ?? null}
238+
label={section.label}
239239
hasGap={!!section.label}
240240
>
241241
{section.items.map((subItem) => (
@@ -319,7 +319,7 @@ export const Navigation = ({
319319
{(closePopover) => (
320320
<SecondaryMenu title={item.label} badgeType={item.badgeType}>
321321
{sections?.map((section) => (
322-
<SecondaryMenu.Section key={section.id} label={section.label ?? null}>
322+
<SecondaryMenu.Section key={section.id} label={section.label}>
323323
{section.items.map((subItem) => (
324324
<SecondaryMenu.Item
325325
key={subItem.id}
@@ -355,7 +355,7 @@ export const Navigation = ({
355355
title={sidePanelContent.label}
356356
>
357357
{sidePanelContent.sections?.map((section) => (
358-
<SecondaryMenu.Section key={section.id} label={section.label ?? null}>
358+
<SecondaryMenu.Section key={section.id} label={section.label}>
359359
{section.items.map((subItem) => (
360360
<SecondaryMenu.Item
361361
key={subItem.id}

0 commit comments

Comments
 (0)