From d1bc5e65c886a38dda1eeb44d33b9fd1285e88b0 Mon Sep 17 00:00:00 2001 From: Mo Mesgin Date: Thu, 28 Nov 2024 11:51:18 -0800 Subject: [PATCH] backport the fix for undefined versions of charts --- shell/utils/version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/utils/version.js b/shell/utils/version.js index 275ae6db2b2..fa4be45395b 100644 --- a/shell/utils/version.js +++ b/shell/utils/version.js @@ -66,7 +66,7 @@ function comparePart(in1, in2) { return in1.localeCompare(in2); } -export function isPrerelease(version) { +export function isPrerelease(version = '') { if (!semver.valid(version)) { version = semver.clean(version, { loose: true }); }