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:
@@ -88,6 +88,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
_computeLinkURL: function(link) {
|
_computeLinkURL: function(link) {
|
||||||
|
if (typeof link.url === 'undefined') {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
if (link.target) {
|
if (link.target) {
|
||||||
return link.url;
|
return link.url;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user