From 36cb4f6cd25afecffd8b73fa984b75a9e6149cc6 Mon Sep 17 00:00:00 2001 From: Chase Nelson Date: Sat, 12 Oct 2024 02:09:00 -0400 Subject: [PATCH] fix: docs navigation dropdowns with the same title (#3488) --- apps/docs/components/Navigation.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/docs/components/Navigation.tsx b/apps/docs/components/Navigation.tsx index fc0059b858..2d17f8402a 100644 --- a/apps/docs/components/Navigation.tsx +++ b/apps/docs/components/Navigation.tsx @@ -164,7 +164,7 @@ const NavigationGroup = ({ if (openGroups.includes(title)) { setOpenGroups(openGroups.filter((t) => t !== title)); } else { - setOpenGroups([...openGroups, title]); + setOpenGroups([title]); } setActiveGroup(group); }; @@ -186,7 +186,7 @@ const NavigationGroup = ({