Skip to content

Commit

Permalink
Merge pull request rancher#12712 from momesgin/12460-backport-undefin…
Browse files Browse the repository at this point in the history
…ed-version-in-charts

Backport the fix for `undefined` versions of charts
  • Loading branch information
momesgin authored Nov 29, 2024
2 parents 0c263d5 + d1bc5e6 commit 55da507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/utils/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 55da507

Please sign in to comment.