PolyGerrit: Fix undefined url in gr-dropdown
If link.url is undefined lets return it as '' so no url is applied. Bug: Issue 6352 Change-Id: I9492e48b14e4387cbdbe87c562ffa4966323948c
This commit is contained in:
parent
5b208b4f2b
commit
7580853b58
@ -98,6 +98,9 @@
|
||||
},
|
||||
|
||||
_computeLinkURL(link) {
|
||||
if (typeof link.url === 'undefined') {
|
||||
return '';
|
||||
}
|
||||
if (link.target) {
|
||||
return link.url;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user