fix: Version selector should be consistent with drop-down

Use the presentational `title` value like the drop-down does; not the `version` value used to match the URL (version subdirectory).
This commit is contained in:
Brennan Kinney 2021-03-08 11:34:52 +13:00 committed by GitHub
parent 47659c24d7
commit 48727db010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ export function renderVersionSelector(versions: Version[]): HTMLElement {
return ( return (
<div class="md-version"> <div class="md-version">
<span class="md-version__current"> <span class="md-version__current">
{active.version} {active.title}
</span> </span>
<ul class="md-version__list"> <ul class="md-version__list">
{versions.map(version => ( {versions.map(version => (