diff --git a/apps/cs/src/entities/menu/lib/menu-wrapper.tsx b/apps/cs/src/entities/menu/lib/menu-wrapper.tsx index 7ecf2e6dd..1f1080cac 100644 --- a/apps/cs/src/entities/menu/lib/menu-wrapper.tsx +++ b/apps/cs/src/entities/menu/lib/menu-wrapper.tsx @@ -43,7 +43,7 @@ const MenuWrapper = ({ children }: { children: React.ReactNode }) => { const response = await getPageMenuAuthority(); if (response?.length) setPageMenuAuthority(response[0]!); })(); - }, []); + }, [pathname]); useEffect(() => { if (!pageMenuAuthority) return;