diff --git a/ui/src/views/iam/AddUser.vue b/ui/src/views/iam/AddUser.vue index 8ef88eb64ce..efec6657f54 100644 --- a/ui/src/views/iam/AddUser.vue +++ b/ui/src/views/iam/AddUser.vue @@ -137,7 +137,9 @@ @@ -225,7 +227,7 @@ export default { this.apiConfig.params.forEach(param => { this.apiParams[param.name] = param }) - this.apiConfig = this.$store.getters.apis.authorizeSamlSso || {} + this.apiConfig = this.$store.getters.apis.authorizeSamlSso || { params: [] } this.apiConfig.params.forEach(param => { this.apiParams[param.name] = param }) @@ -319,7 +321,7 @@ export default { if (this.account) { params.account = this.account - } else if (values.account) { + } else if (this.accountList[values.account]) { params.account = this.accountList[values.account].name }