diff --git a/showcases/patternhub/components/version-switcher/version-switcher.tsx b/showcases/patternhub/components/version-switcher/version-switcher.tsx index ad8db938068..2290e317730 100644 --- a/showcases/patternhub/components/version-switcher/version-switcher.tsx +++ b/showcases/patternhub/components/version-switcher/version-switcher.tsx @@ -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);