diff --git a/dashboard/client/api/endpoints/helm-releases.api.ts b/dashboard/client/api/endpoints/helm-releases.api.ts index 23ea9653c1..dfd284905f 100644 --- a/dashboard/client/api/endpoints/helm-releases.api.ts +++ b/dashboard/client/api/endpoints/helm-releases.api.ts @@ -170,7 +170,12 @@ export class HelmRelease implements ItemObject { } getVersion() { - return this.chart.match(/(\d+)[^-]*$/)[0]; + const versions = this.chart.match(/(\d+)[^-]*$/) + if (versions) { + return versions[0] + } else { + return "" + } } getUpdated(humanize = true, compact = true) {