diff --git a/deploy-board/deploy_board/templates/configs/new_capacity_adv.html b/deploy-board/deploy_board/templates/configs/new_capacity_adv.html index df4226d1ce..0f13a8d25b 100644 --- a/deploy-board/deploy_board/templates/configs/new_capacity_adv.html +++ b/deploy-board/deploy_board/templates/configs/new_capacity_adv.html @@ -560,9 +560,9 @@

Capacity

globalNotificationBanner.error = "Replacement timeout must be a number between 5 and 1440 minutes (24 hours)"; return false; } - var access_role = clusterInfo.configs['access_role'].trim(); - if (!access_role) { - globalNotificationBanner.error = "Access Role must be specified"; + var access_role = clusterInfo.configs['access_role'] ?? ''; + if (access_role.trim().length === 0) { + globalNotificationBanner.error = "Access Role must be specified and cannot be empty"; return false; } @@ -644,7 +644,8 @@

Capacity

} let accessRoleObj = this.allUserData.find(({name}) => name === "access_role"); - clusterInfo.configs['access_role'] = accessRoleObj.value; + clusterInfo.configs['access_role'] = accessRoleObj?.value; + if (this.validateInput(clusterInfo)) { //Send request this.sendRequest(clusterInfo);