diff options
Diffstat (limited to 'lib/sidebars/projects/panel.rb')
-rw-r--r-- | lib/sidebars/projects/panel.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sidebars/projects/panel.rb b/lib/sidebars/projects/panel.rb index 5d8bc18ac88..738a3fba9c6 100644 --- a/lib/sidebars/projects/panel.rb +++ b/lib/sidebars/projects/panel.rb @@ -42,9 +42,9 @@ module Sidebars end def third_party_wiki_menu - wiki_menu_list = [::Sidebars::Projects::Menus::ConfluenceMenu, ::Sidebars::Projects::Menus::ShimoMenu] + return unless ::Sidebars::Projects::Menus::ConfluenceMenu.new(context).render? - wiki_menu_list.find { |wiki_menu| wiki_menu.new(context).render? } + ::Sidebars::Projects::Menus::ConfluenceMenu end end end |