diff --git a/source/Ox.UI/js/Map/MapEditor.js b/source/Ox.UI/js/Map/MapEditor.js index 8dda2a2b..1b358d7f 100644 --- a/source/Ox.UI/js/Map/MapEditor.js +++ b/source/Ox.UI/js/Map/MapEditor.js @@ -1038,7 +1038,7 @@ Ox.MapEditor = function(options, self) { function selectPlace(place) { // Select place on map - var isResult = !!place.id && place.id[0] == '_', + var isResult = place && place.id[0] == '_', isUndefined = !!self.options.selected && !self.$list.value(self.options.selected, 'type'); self.selectedPlace = place.id || '';