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();
|
super();
|
||||||
if (gpx) {
|
if (gpx) {
|
||||||
this.attributes = gpx.attributes
|
this.attributes = gpx.attributes
|
||||||
this.metadata = gpx.metadata;
|
this.metadata = gpx.metadata ?? {};
|
||||||
this.metadata.author = {
|
this.metadata.author = {
|
||||||
name: 'gpx.studio',
|
name: 'gpx.studio',
|
||||||
link: {
|
link: {
|
||||||
|
|
Loading…
Reference in a new issue