[apps/cs] chore: menu wrapper 로직 pathname 변경될 때마다 실행

This commit is contained in:
2025-07-02 09:33:07 +09:00
parent b001e2861b
commit 5092dfa6e6
@@ -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;