fix dependency array

This commit is contained in:
Paul Wackerow 2022-12-19 15:13:35 -08:00
parent 71a0fa1064
commit ea069728b2
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export const DocsLinks: FC<Props> = ({ navLinks, toggleMobileAccordion }) => {
{} {}
) )
); );
}, [asPath]); // eslint-disable-line react-hooks/exhaustive-deps }, [asPath, navLinks]);
return ( return (
<Stack border='2px' borderColor='primary'> <Stack border='2px' borderColor='primary'>
{navLinks.map(({ id, to, items }, idx) => { {navLinks.map(({ id, to, items }, idx) => {