X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/68a3df4d53c84508bf443058040379c3a18eb1a7..b00b156ef46a8fb9ae62bd924de7d7c959963847:/app/assets/javascripts/index/notes.js.erb?ds=inline diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 841ae1f7b..4e45cbe05 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -34,7 +34,9 @@ function initializeNotes(map) { }); noteLayer.on('click', function(e) { - OSM.router.route('/note/' + e.layer.id); + if (e.layer.id) { + OSM.router.route('/note/' + e.layer.id); + } }); function updateMarker(marker, feature) {