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

[cloudstack-primate] branch master updated: compute: fix null exception while listing networks

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

rohit 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 26b1a77  compute: fix null exception while listing networks
26b1a77 is described below

commit 26b1a77a2befedaacfbfd64858026460f4b09fb8
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Wed Apr 22 15:08:16 2020 +0530

    compute: fix null exception while listing networks
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 src/views/compute/DeployVM.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/compute/DeployVM.vue b/src/views/compute/DeployVM.vue
index d7b7eee..5b507b2 100644
--- a/src/views/compute/DeployVM.vue
+++ b/src/views/compute/DeployVM.vue
@@ -515,9 +515,9 @@ export default {
           options: {
             zoneid: _.get(this.zone, 'id'),
             canusefordeploy: true,
-            projectid: store.getters.project.id,
-            domainid: store.getters.project.id ? null : store.getters.userInfo.domainid,
-            account: store.getters.project.id ? null : store.getters.userInfo.account,
+            projectid: store.getters.project ? store.getters.project.id : null,
+            domainid: store.getters.project && store.getters.project.id ? null : store.getters.userInfo.domainid,
+            account: store.getters.project && store.getters.project.id ? null : store.getters.userInfo.account,
             page: 1,
             pageSize: 10,
             keyword: undefined