diff --git a/src/lib/gpx-parser-builder/src/link.js b/src/lib/gpx-parser-builder/src/link.js index f7e05af..074bd5d 100644 --- a/src/lib/gpx-parser-builder/src/link.js +++ b/src/lib/gpx-parser-builder/src/link.js @@ -1,8 +1,8 @@ export default class Link { constructor(object) { this.$ = {}; - this.$.href = object.$.href || object.href; + this.$.href = object.$?.href || object.href; this.text = object.text; this.type = object.type; } -} \ No newline at end of file +}