diff --git a/app/views/search/_hierarchy_layer.html.erb b/app/views/search/_hierarchy_layer.html.erb index ae200f4..bcc0885 100644 --- a/app/views/search/_hierarchy_layer.html.erb +++ b/app/views/search/_hierarchy_layer.html.erb @@ -1,4 +1,4 @@ -<% if id %> +<% if id && @type_facets[id] %>
<% if @hierarchy_data.dig(id, :children).any? %>