fix loading files without metadata
This commit is contained in:
parent
0757efcb79
commit
2e50dea71d
1 changed files with 1 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue