diff --git a/source/Ox.UI/js/Map/Map.js b/source/Ox.UI/js/Map/Map.js index 86ce4e84..cd9f5bfa 100644 --- a/source/Ox.UI/js/Map/Map.js +++ b/source/Ox.UI/js/Map/Map.js @@ -578,7 +578,7 @@ Ox.Map = function(options, self) { function addPlaceToPlaces(data) { var place = Ox.extend(getSelectedPlace() || {}, data), - country = Ox.getCountryByGeoname(place.geoname) || {}; + country = Ox.getCountryByGeoname(place.geoname); place.countryCode = country ? country.code : ''; self.options.selected = place.id; setPlaceControls(place);