clone metadata berfore export

This commit is contained in:
vcoppe
2024-06-28 12:40:03 +02:00
parent 1ad6df5175
commit c7adcb8883

View File

@@ -192,8 +192,8 @@ export class GPXFile extends GPXTreeNode<Track>{
toGPXFileType(): GPXFileType {
return {
attributes: this.attributes,
metadata: this.metadata,
attributes: cloneJSON(this.attributes),
metadata: cloneJSON(this.metadata),
wpt: this.wpt,
trk: this.trk.map((track) => track.toTrackType())
};