diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-11 04:33:41 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-11 04:33:41 +0300 |
commit | 8b2eaa60fac65724e76dbd5cb0415d4eadd448ba (patch) | |
tree | a4540f142a1d29c431ed0e3b66526000d67faa13 /app/assets/javascripts/groups | |
parent | 8064a400a83cfbf8e5f22b29d722fac7883b0217 (diff) |
Better checking for subgroups
Diffstat (limited to 'app/assets/javascripts/groups')
-rw-r--r-- | app/assets/javascripts/groups/components/group_item.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index 627eae1cd0d..733cee153b5 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -10,7 +10,7 @@ export default { }, methods: { toggleSubGroups() { - if (this.group.subGroups && !this.group.subGroups.length) { + if (!this.group.subGroups || (this.group.subGroups && !this.group.subGroups.length)) { return; } |