Improved error display in histogram and table

This commit is contained in:
Rashid Khan
2013-04-05 13:01:32 -07:00
parent e9d1fc7b1a
commit 3c1f9457bd
5 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -187,8 +187,9 @@ angular.module('kibana.dashcontrol', [])
var results = request.query(
$scope.ejs.QueryStringQuery(query || '*')
).size($scope.panel.elasticsearch_size).doSearch();
results.then(function(results) {
if(_.isUndefined(results)) {
if(_.isUndefined(results.hits)) {
return;
}
$scope.panel.error = false;