mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
fix loading files without metadata
This commit is contained in:
@@ -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: {
|
||||||
|
Reference in New Issue
Block a user