fix dependency array

pull/26374/head
Paul Wackerow 2 years ago
parent 71a0fa1064
commit ea069728b2
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
  1. 2
      src/components/UI/docs/DocsLinks.tsx

@ -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) => {

Loading…
Cancel
Save