Skip to content

Commit 72d60fd

Browse files
committed
Update sample_map.json.jbuilder
1 parent 2ae4b8e commit 72d60fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/genomes/sample_map.json.jbuilder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ json.features(
4949
} if sample.lat_lon?
5050
end.compact
5151
else
52-
@sample_set.locations_complete.map do |lon_lat|
52+
@sample_set.select(&:lat_lon?).map(&:lon_lat).uniq.map do |lat_lon|
5353
{
5454
type: 'Feature',
5555
geometry: { type: 'Point', coordinates: lon_lat }

0 commit comments

Comments
 (0)