Skip to content

Commit

Permalink
Merge pull request #12507 from momesgin/11289-undefined-chart-version
Browse files Browse the repository at this point in the history
Set empty string as fallback for undefined version
  • Loading branch information
momesgin authored Nov 15, 2024
2 parents 4dcbc1d + 1603dd2 commit 2cfc0a4
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 2cfc0a4

Please sign in to comment.