summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/groups/components/group_item.vue
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-05-31 20:27:37 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2017-05-31 20:27:37 -0500
commit9c71b78145c649740815be7ee4f714d4451892a6 (patch)
tree7613d8321f3878ddc1132783a211f55a160fc60c /app/assets/javascripts/groups/components/group_item.vue
parent56a279be975147a800d6cd4879346def058ac4fa (diff)
downloadgitlab-ce-9c71b78145c649740815be7ee4f714d4451892a6.tar.gz
Fix JS error when filtering by option
Diffstat (limited to 'app/assets/javascripts/groups/components/group_item.vue')
-rw-r--r--app/assets/javascripts/groups/components/group_item.vue2
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 769ef05add6..2013469f9e6 100644
--- a/app/assets/javascripts/groups/components/group_item.vue
+++ b/app/assets/javascripts/groups/components/group_item.vue
@@ -63,7 +63,7 @@ export default {
if (this.group.isOrphan) {
// check if current group is baseGroup
- if (this.baseGroup) {
+ if (Object.keys(this.baseGroup).length > 0) {
// Remove baseGroup prefix from our current group.fullName. e.g:
// baseGroup.fullName: `level1`
// group.fullName: `level1 / level2 / level3`