Skip to content

Commit

Permalink
fix(ui5-link): fix JS error when href is undefined (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis committed Mar 26, 2020
1 parent fcc8b3f commit a7cf983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Link extends UI5Element {
}

get parsedRef() {
return this.href.length > 0 ? this.href : undefined;
return (this.href && this.href.length > 0) ? this.href : undefined;
}

static async onDefine() {
Expand Down

0 comments on commit a7cf983

Please sign in to comment.