fixes trail saving
This commit is contained in:
@@ -280,6 +280,7 @@ export default class GPX {
|
||||
|
||||
const builder = new xml2js.Builder(options)
|
||||
const gpx = new GPX(this);
|
||||
(gpx as any).features = undefined
|
||||
allDatesToISOString(gpx);
|
||||
|
||||
let xmlString = builder.buildObject(gpx);
|
||||
|
||||
@@ -1061,8 +1061,8 @@
|
||||
});
|
||||
}
|
||||
|
||||
function updateTrailOnMap() {
|
||||
const t = { ...$formData } as Trail;
|
||||
function updateTrailOnMap() {
|
||||
const t: Trail = JSON.parse(JSON.stringify($formData));
|
||||
t.expand!.gpx = valhallaStore.route;
|
||||
mapTrail = [t];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user