Fix missing version picker on docs. (#843)

* Fix missing ) for version picker

* Create 843.bugfix
This commit is contained in:
Will Hunt 2023-11-15 09:20:42 +00:00 committed by GitHub
parent 527f6aabfd
commit 6e36d73ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/843.bugfix Normal file
View File

@ -0,0 +1 @@
Fix version picker on docs site not loading.

View File

@ -11,7 +11,7 @@ window.addEventListener("load", () => {
res.json()
).then(releases => {
selectElement.innerHTML = "";
for (const version of ['latest', ...releases.map(r => r.tag_name).filter(s => s !== "0.1.0" && !s.startsWith("helm-")]) {
for (const version of ['latest', ...releases.map(r => r.tag_name).filter(s => s !== "0.1.0" && !s.startsWith("helm-"))]) {
const option = document.createElement("option");
option.innerHTML = version;
selectElement.add(option);