summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleClientView.vue
diff options
context:
space:
mode:
authorUdo Walter2018-08-02 07:29:15 +0200
committerUdo Walter2018-08-02 07:29:15 +0200
commit921866ed02766f085ea8a61ee46101cf6a9e81c2 (patch)
tree74a36e8c8967f47a17b729de12f93aa1a1f68e6a /webapp/src/components/GroupModuleClientView.vue
parent[groups] add delete client/group functionality (diff)
downloadbas-921866ed02766f085ea8a61ee46101cf6a9e81c2.tar.gz
bas-921866ed02766f085ea8a61ee46101cf6a9e81c2.tar.xz
bas-921866ed02766f085ea8a61ee46101cf6a9e81c2.zip
[groups] small bugfix
Diffstat (limited to 'webapp/src/components/GroupModuleClientView.vue')
-rw-r--r--webapp/src/components/GroupModuleClientView.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/src/components/GroupModuleClientView.vue b/webapp/src/components/GroupModuleClientView.vue
index 86874b1..e2c381b 100644
--- a/webapp/src/components/GroupModuleClientView.vue
+++ b/webapp/src/components/GroupModuleClientView.vue
@@ -144,7 +144,7 @@ export default {
this.editMode = true
this.info.name = this.client.name
this.info.description = this.client.description
- if (this.client.groups) this.groupIds = this.client.groups.map(x => x.id)
+ this.groupIds = this.client.groups ? this.client.groups.map(x => x.id) : []
},
cancelEdit () {
this.editMode = false