summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleGroupView.vue
diff options
context:
space:
mode:
authorUdo Walter2019-02-23 10:13:12 +0100
committerUdo Walter2019-02-23 10:13:12 +0100
commit6f4ce41ba3c9d32a71225ca8b9700266c63edfb1 (patch)
tree0e6abef962680d2ebf8d7990cb18567f5c86b4bd /webapp/src/components/GroupModuleGroupView.vue
parent[webapp/groups] add delete button to groups and clients (diff)
downloadbas-6f4ce41ba3c9d32a71225ca8b9700266c63edfb1.tar.gz
bas-6f4ce41ba3c9d32a71225ca8b9700266c63edfb1.tar.xz
bas-6f4ce41ba3c9d32a71225ca8b9700266c63edfb1.zip
[webapp/groups] small bugfix
Diffstat (limited to 'webapp/src/components/GroupModuleGroupView.vue')
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index dc4ce29..baff66c 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -198,8 +198,8 @@ export default {
this.info.name = this.group.name
this.info.description = this.group.description
this.info.configId = this.group.configId
- this.parents = this.group.parents.slice(0) || []
- this.ipranges = this.group.ipranges.slice(0) || [{ startIp: '', endIp: '' }]
+ this.parents = this.group.parents ? this.group.parents.slice(0) : []
+ this.ipranges = this.group.ipranges ? this.group.ipranges.slice(0) : [{ startIp: '', endIp: '' }]
},
cancelEdit () {
this.editMode = false