Skip to content

Commit

Permalink
fix(version switcher): displaying latest entry (#3438)
Browse files Browse the repository at this point in the history
* fix: latest branch

* chore: not proud of that

* Update version-switcher.tsx
  • Loading branch information
mfranzke authored Nov 10, 2024
1 parent 64f16ed commit 75bef0a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ const VersionSwitcher = () => {
(branch) =>
branch !== 'gh-pages' && !branch.includes('dependabot')
);

// `latest` isn't a branch, but only existing within gh-pages
tags.unshift('latest');

setCurrentBranch(branches);
setCurrentBranch(tags);
setGroupByTagsBranches(tags, branches);
Expand Down

0 comments on commit 75bef0a

Please sign in to comment.