Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDoug Stull <dstull@gitlab.com>2021-10-13 12:48:40 +0300
committerDavid O'Regan <doregan@gitlab.com>2021-10-13 12:48:40 +0300
commitd360c7992b689261e78cc98b53bc2b18199694a3 (patch)
treeb6626cbb3f7a90d95477d4c3fdddc233fb379898 /lib
parentfae8dd247fde69ef3417604116b13ac6a9d29dac (diff)
Support 6 or 7 levels of nested items in the global nav
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/navigation/doc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/navigation/doc.rb b/lib/gitlab/navigation/doc.rb
index 27c75d7d..cdb3540c 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