diff --git a/src/components/side-nav.tsx b/src/components/side-nav.tsx index 4d90d292..16b0d33e 100644 --- a/src/components/side-nav.tsx +++ b/src/components/side-nav.tsx @@ -155,7 +155,7 @@ const Navigation = () => { if (selected.items !== currentSection) { setSelected({ type: 'page', items: currentSection }); } - }, []); + }, [router.pathname]); const handleClick = (page: any) => { if (page.pages) {