diff --git a/shell/models/provisioning.cattle.io.cluster.js b/shell/models/provisioning.cattle.io.cluster.js index f060cadd6e4..b9a823bb1c6 100644 --- a/shell/models/provisioning.cattle.io.cluster.js +++ b/shell/models/provisioning.cattle.io.cluster.js @@ -885,7 +885,8 @@ export default class ProvCluster extends SteveModel { get agentConfig() { // The one we want is the first one with no selector. // If there are multiple with no selector, that will fall under the unsupported message below. - return this.spec.rkeConfig.machineSelectorConfig.find((x) => !x.machineLabelSelector)?.config; + return this.spec.rkeConfig?.machineSelectorConfig + .find((x) => !x.machineLabelSelector)?.config || { }; } get cloudProvider() {