Skip to content

Commit

Permalink
- Don't show type facet entries where there are no matching records
Browse files Browse the repository at this point in the history
  • Loading branch information
j-corry committed Nov 11, 2024
1 parent 220186e commit 274aada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/search/_hierarchy_layer.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if id %>
<% if id && @type_facets[id] %>
<div class="grid-row">
<span class="facet-toggle toggle-<%= parent_id %> <%= 'collapse' if (tier > 1 && !@expanded_types.include?(parent_id.to_s)) %>" style="margin-left: <%= (tier - 1) * 0 %>px;">
<% if @hierarchy_data.dig(id, :children).any? %>
Expand Down

0 comments on commit 274aada

Please sign in to comment.