From 806c679540fd5f33b085258b0195ac295b4e9f7d Mon Sep 17 00:00:00 2001 From: Michael Kohl Date: Tue, 28 Sep 2021 15:21:25 +0700 Subject: [PATCH] Fix admin menu when Connect feature flag is disabled (#14833) --- app/views/admin/shared/_nested_sidebar.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/admin/shared/_nested_sidebar.html.erb b/app/views/admin/shared/_nested_sidebar.html.erb index 84a44e9a3..dcf7ffe3a 100644 --- a/app/views/admin/shared/_nested_sidebar.html.erb +++ b/app/views/admin/shared/_nested_sidebar.html.erb @@ -21,10 +21,11 @@ <%= inline_svg_tag(group[:svg], aria_hidden: true, class: "dropdown-icon crayons-icon") %> <%= display_name(group_name) %> + <% first_child = group[:children].detect { |child| child[:visible] } %>