Merge remote-tracking branch 'openstreetmap/pull/954'
authorTom Hughes <tom@compton.nu>
Sun, 20 Mar 2016 18:47:35 +0000 (18:47 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 20 Mar 2016 18:47:35 +0000 (18:47 +0000)
app/assets/javascripts/index/notes.js

index 61067adba8ed9b2f2948482d306be64985a86d03..fd5cd3ae9288ad8ffed7e79d557a44242a0a9ae4 100644 (file)
@@ -45,8 +45,7 @@ OSM.initializeNotes = function (map) {
     } else {
       marker = L.marker(feature.geometry.coordinates.reverse(), {
         icon: noteIcons[feature.properties.status],
-        title: feature.properties.comments && feature.properties.comments[0] ?
-          feature.properties.comments[0].text : undefined,
+        title: feature.properties.comments[0].text,
         opacity: 0.8,
         clickable: true
       });