From ea069728b28c44126894dfaf6c248e96b694e9d9 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Mon, 19 Dec 2022 15:13:35 -0800 Subject: [PATCH] fix dependency array --- src/components/UI/docs/DocsLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {