diff --git a/frontend/public/module/k8s/cluster-settings.ts b/frontend/public/module/k8s/cluster-settings.ts index 81b5a594dbc..d6ef74ce643 100644 --- a/frontend/public/module/k8s/cluster-settings.ts +++ b/frontend/public/module/k8s/cluster-settings.ts @@ -85,6 +85,9 @@ export const getSortedNotRecommendedUpdates = (cv: ClusterVersionKind): Conditio export const getNewerMinorVersionUpdate = (currentVersion, availableUpdates) => { const currentVersionParsed = semver.parse(currentVersion); + if (!currentVersionParsed) { + return; + } return availableUpdates?.find( // find the next minor version update, which there should never be more than one (update) => {