Skip to content

Commit

Permalink
Fix isActive for TS chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
fhammerschmidt committed Jan 12, 2024
1 parent 0d24d05 commit aae07eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navigation.res
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
Expand All @@ -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
}
},
Expand Down

0 comments on commit aae07eb

Please sign in to comment.