mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
addldapaccount: Fix defensive check
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
7b01fe03ef
commit
73a03c58fa
@ -283,7 +283,7 @@ export default {
|
|||||||
params.domainid = store.getters.userInfo.domainid
|
params.domainid = store.getters.userInfo.domainid
|
||||||
if (domain) {
|
if (domain) {
|
||||||
const result = this.listDomains.filter(item => item.name === domain)
|
const result = this.listDomains.filter(item => item.name === domain)
|
||||||
if (result) {
|
if (result.length > 0) {
|
||||||
params.domainid = result[0].id
|
params.domainid = result[0].id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user