Commit 8b2eaa60 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Better checking for subgroups

parent 8064a400
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
}, },
methods: { methods: {
toggleSubGroups() { toggleSubGroups() {
if (this.group.subGroups && !this.group.subGroups.length) { if (!this.group.subGroups || (this.group.subGroups && !this.group.subGroups.length)) {
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment