mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
clone metadata berfore export
This commit is contained in:
@@ -192,8 +192,8 @@ export class GPXFile extends GPXTreeNode<Track>{
|
|||||||
|
|
||||||
toGPXFileType(): GPXFileType {
|
toGPXFileType(): GPXFileType {
|
||||||
return {
|
return {
|
||||||
attributes: this.attributes,
|
attributes: cloneJSON(this.attributes),
|
||||||
metadata: this.metadata,
|
metadata: cloneJSON(this.metadata),
|
||||||
wpt: this.wpt,
|
wpt: this.wpt,
|
||||||
trk: this.trk.map((track) => track.toTrackType())
|
trk: this.trk.map((track) => track.toTrackType())
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user