From d3e53af95fc7bf94b50e8e5cf8269f444a087cd7 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Mon, 19 Dec 2022 22:43:30 -0700 Subject: [PATCH] Update src/components/UI/docs/DocsLinks.tsx Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/components/UI/docs/DocsLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (