Skip to content

Commit

Permalink
touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-sul committed Sep 6, 2024
1 parent 515d1f2 commit a2d45ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/blacklight/date_facet_hierarchy_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def facet_item_tree_hierarchy_from_year_list

next unless decade_str

decade_facet = tree[century_str].items.find { |decade_item| decade_item.value == "#{century_str}:#{decade_str}" }
decade_facet = tree[century_str].items.find do |decade_item|
decade_item.value == "#{century_str}:#{decade_str}"
end
unless decade_facet
decade_facet = Blacklight::Solr::Response::Facets::FacetItem.new(value: "#{century_str}:#{decade_str}",
items: [], hits: 0)
Expand Down

0 comments on commit a2d45ed

Please sign in to comment.