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

@@ -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];
}