Skip to content
Snippets Groups Projects
Commit f21a0808 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

fix: Add location property to newly persisted POI to make KM distance to weatherstation work

parent 4e38f078
Branches
No related tags found
No related merge requests found
......@@ -194,6 +194,7 @@
})
.then(response => response.json())
.then(poi => {
poi.location=[poi.longitude, poi.latitude];
locationList.push(poi);
renderPoiSelect(selectLocationElement, locationList, poi.pointOfInterestId);
// Assuming that this is not a weather station, since weather stations cannot be created using the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment