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