From d360c7992b689261e78cc98b53bc2b18199694a3 Mon Sep 17 00:00:00 2001 From: Doug Stull Date: Wed, 13 Oct 2021 09:48:40 +0000 Subject: Support 6 or 7 levels of nested items in the global nav --- lib/gitlab/navigation/doc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/navigation/doc.rb') 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 -- cgit v1.2.3