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

pull/26374/head
Paul Wackerow 2 years ago committed by GitHub
parent ad10290fc4
commit 6e614142a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/UI/docs/DocsLinks.tsx

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

Loading…
Cancel
Save