don't throw on place deselect (data is now null, not {})
This commit is contained in:
parent
02da127698
commit
177693b3ce
1 changed files with 1 additions and 1 deletions
|
@ -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 || '';
|
||||
|
|
Loading…
Reference in a new issue