From b97f75fef896198d357542ceab6b384e08d5ee7c Mon Sep 17 00:00:00 2001 From: Norbert Csaba Herczeg Date: Thu, 7 Nov 2024 13:48:56 +0100 Subject: [PATCH] JNG-6001 fix hook loop --- .../src/layout/Drawer/DrawerContent/Navigation/index.tsx.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judo-ui-react/src/main/resources/actor/src/layout/Drawer/DrawerContent/Navigation/index.tsx.hbs b/judo-ui-react/src/main/resources/actor/src/layout/Drawer/DrawerContent/Navigation/index.tsx.hbs index 584fbb45..92c03409 100644 --- a/judo-ui-react/src/main/resources/actor/src/layout/Drawer/DrawerContent/Navigation/index.tsx.hbs +++ b/judo-ui-react/src/main/resources/actor/src/layout/Drawer/DrawerContent/Navigation/index.tsx.hbs @@ -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]);