fixes trail saving

This commit is contained in:
Christian Beutel
2025-08-02 22:19:11 +02:00
parent 1c10e90db7
commit 53508be008
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -1062,7 +1062,7 @@
}
function updateTrailOnMap() {
const t = { ...$formData } as Trail;
const t: Trail = JSON.parse(JSON.stringify($formData));
t.expand!.gpx = valhallaStore.route;
mapTrail = [t];
}