Skip to content

Use latestVersion instead of versions[0] in VersionSelector - #2031

Merged
marcleblanc2 merged 1 commit into
mainfrom
marc/chore/use-latest-version
Sep 23, 2026
Merged

marcleblanc2 merged 1 commit into
mainfrom
marc/chore/use-latest-version

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

src/data/versions.ts already exports latestVersion = versions[0]; this replaces the four hand-written versions[0] references in src/components/VersionSelector.tsx with it, so the latest-version logic has one home.

No behaviour change. npx tsc --noEmit and pnpm run lint are clean for the changed file.

Follow-up to #1997, which keeps the latestVersion export.

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 23, 2026 11:07pm UTC

Request Review

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

@marcleblanc2
marcleblanc2 enabled auto-merge (squash) September 23, 2026 23:05
@marcleblanc2
marcleblanc2 force-pushed the marc/chore/use-latest-version branch from 7431c08 to 9bc8635 Compare September 23, 2026 23:05
@marcleblanc2
marcleblanc2 merged commit aa52176 into main Sep 23, 2026
7 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/chore/use-latest-version branch September 23, 2026 23:07

This branch was successfully deployed

1 active deployment
Preview — 9bc86359 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants