From 667a5aa15b877137e3bce5824230b454efef4723 Mon Sep 17 00:00:00 2001 From: miyuko Date: Wed, 3 Dec 2025 17:14:04 +0000 Subject: [PATCH] docs: fix version switch always showing the current version the first. --- docs/_static/version-switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/version-switch.js b/docs/_static/version-switch.js index 015bdbce9..a71319314 100644 --- a/docs/_static/version-switch.js +++ b/docs/_static/version-switch.js @@ -73,7 +73,7 @@ document.addEventListener('DOMContentLoaded', () => { document.adoptedStyleSheets.push(cssStyleSheet); let currentVersion = DOCUMENTATION_OPTIONS.VERSION; - if (!versions.includes(currentVersion)) { + if (!versions.some(({ name }) => name === currentVersion)) { versions = [ { name: currentVersion, root_url: contentRoot }, ...versions,