Skip to content

Commit a7cf983

Browse files
fix(ui5-link): fix JS error when href is undefined (#1373)
1 parent fcc8b3f commit a7cf983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/Link.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class Link extends UI5Element {
226226
}
227227

228228
get parsedRef() {
229-
return this.href.length > 0 ? this.href : undefined;
229+
return (this.href && this.href.length > 0) ? this.href : undefined;
230230
}
231231

232232
static async onDefine() {

0 commit comments

Comments
 (0)