From aae07eb1b5e7507dbc97f181c8673537839b7810 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Fri, 29 Dec 2023 00:40:26 +0100 Subject: [PATCH] Fix isActive for TS chapter --- src/components/Navigation.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Navigation.res b/src/components/Navigation.res index fe078cc85..fe4bfb4aa 100644 --- a/src/components/Navigation.res +++ b/src/components/Navigation.res @@ -169,7 +169,7 @@ module DocsSection = { href: `/docs/manual/${version}/introduction`, isActive: url => { switch url.fullpath { - | ["docs", "manual", _, fragment] => !(fragment->Js.String2.startsWith("gentype")) + | ["docs", "manual", _, fragment] => fragment !== "typescript-integration" | _ => false } }, @@ -193,7 +193,7 @@ module DocsSection = { href: "/docs/manual/latest/typescript-integration", isActive: url => { switch url.fullpath { - | ["docs", "manual", _, fragment] => fragment->Js.String2.startsWith("gentype") + | ["docs", "manual", _, "typescript-integration"] => true | _ => false } },