Skip to content

Commit 2ae4b8e

Browse files
committed
Update sample_map.json.jbuilder
1 parent 29d7cf2 commit 2ae4b8e

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
@@ -44,7 +44,7 @@ json.features(
4444
geometry: { type: 'Point', coordinates: sample.lon_lat },
4545
properties: {
4646
sample: sample.accession,
47-
toponym: sample.attributes_by_type(:toponym).first.value
47+
toponym: sample.attributes_by_type(:toponym).first.try(:value)
4848
}
4949
} if sample.lat_lon?
5050
end.compact

0 commit comments

Comments
 (0)