clone metadata berfore export
This commit is contained in:
parent
1ad6df5175
commit
c7adcb8883
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue