From 2ef95a7538b9764e5da2846cfa6aff74568f8d89 Mon Sep 17 00:00:00 2001 From: Karol Zwolak Date: Wed, 26 Feb 2025 10:49:02 +0100 Subject: [PATCH] docs(gh pages): only pull latest version from tags starting with 'v' --- docs/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index a25d7eeec3a..38a978b8251 100644 --- a/docs/index.html +++ b/docs/index.html @@ -148,8 +148,8 @@ .map(tag => tag.name) .filter(tag => tag.startsWith('v') && !excludedTagVersions.has(tag)); - const latestRelease = tags.find(tag => !tag.name.includes('rc')); - this.viewVersion = latestRelease.name; + const latestRelease = tagOptions.find(tag => !tag.includes('rc')); + this.viewVersion = latestRelease; this.versionOptions = this.versionOptions.concat(tagOptions); }, async outputHtml() {