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 {
|
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())
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue