mirror of https://github.com/rancher/ui.git
Fix azure field check
This commit is contained in:
parent
adef54c320
commit
27a0b85870
|
|
@ -148,7 +148,7 @@ export default Component.extend(ViewNewEdit, ChildHook, {
|
|||
const azureProvider = get(this, 'clusterTemplateRevision.clusterConfig.rancherKubernetesEngineConfig.cloudProvider.azureCloudProvider');
|
||||
|
||||
if ( azureProvider ) {
|
||||
const azureQuestions = get(this, 'clusterTemplateRevision.questions').map((x) => x.variable.replace(/^rancherKubernetesEngineConfig\.cloudProvider\.azureCloudProvider\./, ''));
|
||||
const azureQuestions = (get(this, 'clusterTemplateRevision.questions') || []).map((x) => x.variable.replace(/^rancherKubernetesEngineConfig\.cloudProvider\.azureCloudProvider\./, ''));
|
||||
const requiredFields = Object.keys(AzureInfo).filter((k) => AzureInfo[k].required);
|
||||
|
||||
requiredFields.forEach((k) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue