fix loading files without metadata

This commit is contained in:
vcoppe
2024-09-04 14:49:10 +02:00
parent 0757efcb79
commit 2e50dea71d

View File

@@ -112,7 +112,7 @@ export class GPXFile extends GPXTreeNode<Track>{
super();
if (gpx) {
this.attributes = gpx.attributes
this.metadata = gpx.metadata;
this.metadata = gpx.metadata ?? {};
this.metadata.author = {
name: 'gpx.studio',
link: {