Skip to content

Commit

Permalink
use correct key to look up region name
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 19, 2020
1 parent 4e9ab2b commit 552e49c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/concerns/facetable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ def facet_by_schema(arr)

def facet_by_region(arr)
arr.map do |hsh|
hsh["key"] = hsh["key"].downcase

{ "id" => hsh["key"],
{ "id" => hsh["key"].downcase,
"title" => REGIONS[hsh["key"]] || hsh["key"],
"count" => hsh["doc_count"] }
end
Expand Down

0 comments on commit 552e49c

Please sign in to comment.