From 7800b60e3c6a73744e9ae5fd981f934c5a91b1b1 Mon Sep 17 00:00:00 2001 From: Strokkur24 <133226102+Strokkur424@users.noreply.github.com> Date: Fri, 13 Dec 2024 23:44:35 +0100 Subject: [PATCH] fix: beta versions being included as latest version (#506) --- src/util/versionUtils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/versionUtils.ts b/src/util/versionUtils.ts index 2e5c5337..ce6808ae 100644 --- a/src/util/versionUtils.ts +++ b/src/util/versionUtils.ts @@ -41,7 +41,10 @@ const createUserdevVersionsValue = (ttl: number = 5 * 60 * 1000): ExpiringValue< r.json() ); - return json.map((e) => e.name.substring(1)).reverse(); + return json + .map((e) => e.name.substring(1)) + .filter((e) => !e.includes("beta")) + .reverse(); }); };