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