From 3e03c6d20f611edc7fec83d7c432310e2c361d7b Mon Sep 17 00:00:00 2001 From: jdickman Date: Mon, 25 Mar 2024 14:50:13 -0300 Subject: [PATCH] fix: hide expand icon in global navigation lists --- .../navigation/GlobalNavigation/NavigationList.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/navigation/GlobalNavigation/NavigationList.tsx b/src/components/navigation/GlobalNavigation/NavigationList.tsx index ebc5ddf77..b1ad72c05 100644 --- a/src/components/navigation/GlobalNavigation/NavigationList.tsx +++ b/src/components/navigation/GlobalNavigation/NavigationList.tsx @@ -18,7 +18,7 @@ export function NavigationList(props: INavigationListProps) { {props.items.map((item, i) => ( {item.type === 'menu' ? ( - + ) : ( )} @@ -37,6 +37,7 @@ function generateMenuItem(item: IGlobalNavigationItem, i: number) { children.push( ...item.children.map((linkItem, j) => ({ ...linkItem, + expandIcon: null, key: `${String(linkItem.label)}${j}`, label: buildLinkFromHrefOptions(linkItem.label, linkItem.hrefOptions), })), @@ -58,4 +59,4 @@ function generateMenuItem(item: IGlobalNavigationItem, i: number) { key: `${String(item.label)}${i}`, children, } -} +} \ No newline at end of file