Skip to content

Commit fcd3740

Browse files
Code formatting change of version selector (#10480) (#10487)
(cherry picked from commit 75cfad8) Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3f81906 commit fcd3740

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

assets/js/_version-selector.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ class VersionSelector extends HTMLElement {
150150
frag.querySelector('#selected').textContent = `${PREFIX}${this.getAttribute('selected')}.x`;
151151

152152
const pathName = location.pathname.replace(/^\/(latest|\d+\.\d+)(\/)?/, '');
153+
153154
const versionsDOMNodes = DOC_VERSIONS.map((v, idx) => v === DOC_VERSION_LATEST
154155
? `<a href="/latest/${pathName}" class="latest">${PREFIX}${v}</a>`
155156
: `<a href="/${v}/${pathName}">${PREFIX}${v}</a>`,

0 commit comments

Comments
 (0)