kopia lustrzana https://github.com/FacilMap/facilmap
Fix error when importing objects
rodzic
bce6fca58c
commit
423a2b1fa8
|
@ -177,6 +177,8 @@ export default class SearchResults extends Vue {
|
|||
|
||||
if("fmProperties" in result && result.fmProperties) { // Import GeoJSON
|
||||
Object.assign(obj, result.fmProperties);
|
||||
if (result.fmProperties.data)
|
||||
obj.data = new StringMap(result.fmProperties.data);
|
||||
delete obj.typeId;
|
||||
} else {
|
||||
obj.data = mapSearchResultToType(result, type)
|
||||
|
|
Ładowanie…
Reference in New Issue