diff options
author | Doug Stull <dstull@gitlab.com> | 2021-10-13 12:48:40 +0300 |
---|---|---|
committer | David O'Regan <doregan@gitlab.com> | 2021-10-13 12:48:40 +0300 |
commit | d360c7992b689261e78cc98b53bc2b18199694a3 (patch) | |
tree | b6626cbb3f7a90d95477d4c3fdddc233fb379898 /lib/gitlab | |
parent | fae8dd247fde69ef3417604116b13ac6a9d29dac (diff) |
Support 6 or 7 levels of nested items in the global nav
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/navigation/doc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/navigation/doc.rb b/lib/gitlab/navigation/doc.rb index 27c75d7de..cdb3540c7 100644 --- a/lib/gitlab/navigation/doc.rb +++ b/lib/gitlab/navigation/doc.rb @@ -30,7 +30,7 @@ module Gitlab end def children - @children ||= doc.fetch(:docs, []).map { |doc| Doc.new(doc) } + @children ||= doc.fetch(:docs, []).map { |nested_doc| Doc.new(nested_doc) } end private |