diff --git a/src/components/UI/docs/DocsLinks.tsx b/src/components/UI/docs/DocsLinks.tsx index da4c9dae45..f743850bcb 100644 --- a/src/components/UI/docs/DocsLinks.tsx +++ b/src/components/UI/docs/DocsLinks.tsx @@ -40,7 +40,7 @@ export const DocsLinks: FC = ({ navLinks, toggleMobileAccordion }) => { {} ) ); - }, [asPath]); // eslint-disable-line react-hooks/exhaustive-deps + }, [asPath, navLinks]); return ( {navLinks.map(({ id, to, items }, idx) => {