don't crash if non-searchable locations are in groups

This commit is contained in:
Laura Klünder 2017-12-24 22:16:19 +01:00
parent e52a288fa5
commit 439d43b778

View file

@ -1165,6 +1165,10 @@ c3nav = {
},
_location_point_overrides: {},
_add_location_to_map: function(location, icon) {
if (!location) {
// if location is not in the searchable list...
return
}
// add a location to the map as a marker
if (location.locations) {
var bounds = {};