diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-26 14:12:12 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-04 22:49:42 +0200 |
commit | b92e7103fcced2d62000ed382848219016484f7b (patch) | |
tree | 7da435862146503eda545e4f4942884641341628 /app/serializers/group_child_serializer.rb | |
parent | ac0b104ae4968adaed7b94db76c0ac86badb6d6b (diff) | |
download | gitlab-ce-b92e7103fcced2d62000ed382848219016484f7b.tar.gz |
Fix nesting bug when rendering children of a shared subgroup
Diffstat (limited to 'app/serializers/group_child_serializer.rb')
-rw-r--r-- | app/serializers/group_child_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/group_child_serializer.rb b/app/serializers/group_child_serializer.rb index ba81f99fff4..6fa269ee5c0 100644 --- a/app/serializers/group_child_serializer.rb +++ b/app/serializers/group_child_serializer.rb @@ -41,7 +41,7 @@ class GroupChildSerializer < BaseSerializer .merge(children: Array.wrap(serializer.represent_hierarchy(children, opts))) end elsif hierarchy.is_a?(Array) - hierarchy.map { |child| serializer.represent_hierarchy(child, opts) } + hierarchy.map { |child| serializer.represent_hierarchy(child, opts) }.flatten else serializer.represent(hierarchy, opts) end |