You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2020/11/09 11:57:22 UTC

[cloudstack-primate] branch master updated: addldapaccount: Fix defensive check

This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new e46a30d  addldapaccount: Fix defensive check
     new dbda4a6  Merge pull request #853 from shapeblue/fix-ldap
e46a30d is described below

commit e46a30deba07904e7eee54bb205224ca64dee0f6
Author: davidjumani <dj...@gmail.com>
AuthorDate: Mon Nov 9 16:59:23 2020 +0530

    addldapaccount: Fix defensive check
---
 src/views/iam/AddLdapAccount.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/views/iam/AddLdapAccount.vue b/src/views/iam/AddLdapAccount.vue
index feb244e..50806d1 100644
--- a/src/views/iam/AddLdapAccount.vue
+++ b/src/views/iam/AddLdapAccount.vue
@@ -283,7 +283,7 @@ export default {
       params.domainid = store.getters.userInfo.domainid
       if (domain) {
         const result = this.listDomains.filter(item => item.name === domain)
-        if (result) {
+        if (result.length > 0) {
           params.domainid = result[0].id
         }
       }