From 4c8be95737954ff063a4d0016b4786ba291f96fb Mon Sep 17 00:00:00 2001 From: Matti Nannt Date: Fri, 11 Oct 2024 00:17:58 +0200 Subject: [PATCH] fix: sub-navigation sorting in docs (#3415) --- .../contributing/get-started/components/FAQ.tsx | 2 +- apps/docs/components/Navigation.tsx | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/docs/app/developer-docs/contributing/get-started/components/FAQ.tsx b/apps/docs/app/developer-docs/contributing/get-started/components/FAQ.tsx index 6e9f2f8066..c78d18dd73 100644 --- a/apps/docs/app/developer-docs/contributing/get-started/components/FAQ.tsx +++ b/apps/docs/app/developer-docs/contributing/get-started/components/FAQ.tsx @@ -43,7 +43,7 @@ const FAQ_DATA = [ Absolutely! We provide an option for users to host Formbricks on their own server, ensuring even more control over data and compliance. And the best part? Self-hosting is available for free, always. For documentation on self hosting, click{" "} - + here . diff --git a/apps/docs/components/Navigation.tsx b/apps/docs/components/Navigation.tsx index 6152a8f3fe..fc0059b858 100644 --- a/apps/docs/components/Navigation.tsx +++ b/apps/docs/components/Navigation.tsx @@ -171,13 +171,6 @@ const NavigationGroup = ({ const isParentOpen = (title: string) => openGroups.includes(title); - const sortedLinks = group.links.map((link) => { - if (link.children) { - link.children.sort((a, b) => a.title.localeCompare(b.title)); - } - return link; - }); - return (
  • @@ -192,7 +185,7 @@ const NavigationGroup = ({ {isActiveGroup && }
      - {sortedLinks.map((link) => ( + {group.links.map((link) => ( {link.href ? (