fix dependency array
This commit is contained in:
parent
71a0fa1064
commit
ea069728b2
|
@ -40,7 +40,7 @@ export const DocsLinks: FC<Props> = ({ navLinks, toggleMobileAccordion }) => {
|
|||
{}
|
||||
)
|
||||
);
|
||||
}, [asPath]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
}, [asPath, navLinks]);
|
||||
return (
|
||||
<Stack border='2px' borderColor='primary'>
|
||||
{navLinks.map(({ id, to, items }, idx) => {
|
||||
|
|
Loading…
Reference in New Issue