Fix error when importing objects

pull/147/head
Candid Dauth 2021-04-03 14:17:55 +02:00
rodzic bce6fca58c
commit 423a2b1fa8
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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)