mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
fixed unsafe link when clicking dashboard link with no rows selected
This commit is contained in:
parent
a564c94cc3
commit
87d214c5c7
1 changed files with 2 additions and 4 deletions
|
@ -591,7 +591,6 @@ define([
|
|||
return !a ? "" : (a.type === "upper_bound" ? ">" : "<") + y_format_metric_value(a.threshold, metric);
|
||||
};
|
||||
|
||||
|
||||
$scope.detailViewLink = function (rows, fields) {
|
||||
var
|
||||
query,
|
||||
|
@ -611,12 +610,11 @@ define([
|
|||
};
|
||||
});
|
||||
if (rows.length === 0) {
|
||||
/*jshint -W107 */
|
||||
return "javascript:;";
|
||||
return null;
|
||||
}
|
||||
rows = JSON.stringify(rows);
|
||||
time = filterSrv.timeRange(false);
|
||||
show;
|
||||
|
||||
if (!_.isUndefined(fields)) {
|
||||
show = "&show=" + fields.join(",");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue