Skip to content

Commit

Permalink
JNG-6001 fix hook loop
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Nov 7, 2024
1 parent e5f68f4 commit b97f75f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const Navigation = () => {
const filteredMenus: NavItemType[] = [];
handleMenuItems(menuItemsCustomizer ? menuItemsCustomizer(menus) : menus, filteredMenus{{# if application.authentication }}, principal{{/ if }});
setMenuItems(filteredMenus);
}, [{{# if application.authentication }}principal, {{/ if }}menuItemsCustomizer, setMenuItems]);
}, [{{# if application.authentication }}principal, {{/ if }}]);

const isHorizontal = useMemo(() => menuOrientation === MenuOrientation.HORIZONTAL && !downLG, [menuOrientation, downLG]);
let lastItemIndex = useMemo(() => menuItems.length - 1, [menuItems]);
Expand Down

0 comments on commit b97f75f

Please sign in to comment.