mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Merge pull request #61 from spenceralger/empty_dashboard_click
fixed unsafe link when clicking dashboard link with no rows selected
This commit is contained in:
commit
1ef62320a3
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