fix hash-link bug with left docs nav (#195)

This commit is contained in:
Paul Wackerow 2022-12-20 14:20:20 +01:00 committed by GitHub
parent ad10290fc4
commit 6e614142a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,7 @@ export const DocsLinks: FC<Props> = ({ navLinks, toggleMobileAccordion }) => {
navLinks.reduce(
(acc, navLink) => ({
...acc,
[navLink.id]: checkNavLinks({ items: navLink.items, pathCheck: asPath })
[navLink.id]: checkNavLinks({ items: navLink.items, pathCheck: asPath.split('#')[0] })
}),
{}
)