diff --git a/src/components/UI/docs/DocsLinks.tsx b/src/components/UI/docs/DocsLinks.tsx index 808c6e23b1..2c467bd486 100644 --- a/src/components/UI/docs/DocsLinks.tsx +++ b/src/components/UI/docs/DocsLinks.tsx @@ -51,7 +51,7 @@ export const DocsLinks: FC = ({ navLinks, toggleMobileAccordion }) => { {navLinks.map(({ id, to, items }, idx) => { const split = to?.split('/'); const isActive = slug && split && split[split.length - 1] === slug[slug.length - 1]; - const isSectionActive = openSections[id]; + const index = openSections[id] ? 0 : -1; return (