From c7adcb888378756b5046570bd8d4688168a0d92b Mon Sep 17 00:00:00 2001 From: vcoppe Date: Fri, 28 Jun 2024 12:40:03 +0200 Subject: [PATCH] clone metadata berfore export --- gpx/src/gpx.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpx/src/gpx.ts b/gpx/src/gpx.ts index a78203d9..4aa7dcf1 100644 --- a/gpx/src/gpx.ts +++ b/gpx/src/gpx.ts @@ -192,8 +192,8 @@ export class GPXFile extends GPXTreeNode{ 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()) };