mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
Singlestat panel: Fixed error handling, when query fail do not show last value, Fixes #1647
This commit is contained in:
parent
b1f85dc8f1
commit
f343a46ca4
@ -81,9 +81,10 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
|
||||
panelHelper.updateTimeRange($scope);
|
||||
|
||||
return panelHelper.issueMetricQuery($scope, datasource)
|
||||
.then($scope.dataHandler)
|
||||
.then(null, function() {
|
||||
.then($scope.dataHandler, function(err) {
|
||||
$scope.series = [];
|
||||
$scope.render();
|
||||
throw err;
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user