fixed unsafe link when clicking dashboard link with no rows selected

This commit is contained in:
Spencer Alger 2014-01-23 13:09:47 -07:00
parent a564c94cc3
commit 87d214c5c7

View file

@ -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 {