Commit f343a46c by Torkel Ödegaard

Singlestat panel: Fixed error handling, when query fail do not show last value, Fixes #1647

parent b1f85dc8
......@@ -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;
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment