Skip to content

Commit

Permalink
fix: remove uniq from occurrences array in geo_entity
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleypliu committed Jun 8, 2021
1 parent 8a64b58 commit 68d4e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/geo_entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def occurrences

hash = {}

occurrences.uniq.map do |occurrence|
occurrences.map do |occurrence|
next if hash[occurrence['name']] == 'present'

hash[occurrence['name']] = occurrence['occurrence']
Expand Down

0 comments on commit 68d4e1c

Please sign in to comment.