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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sidebars/menu.rb')
-rw-r--r--lib/sidebars/menu.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sidebars/menu.rb b/lib/sidebars/menu.rb
index 3b8872fd572..1af3d024291 100644
--- a/lib/sidebars/menu.rb
+++ b/lib/sidebars/menu.rb
@@ -33,10 +33,9 @@ module Sidebars
has_renderable_items? || menu_with_partial?
end
- # Menus might have or not a link
override :link
def link
- nil
+ renderable_items.first&.link
end
# This method normalizes the information retrieved from the submenus and this menu