Browse Source

fix(elasticsearch): fixed elasticsearch issue, ghost docs series, fixes #3223

Torkel Ödegaard 10 years ago
parent
commit
2cbc62d6c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/plugins/datasource/elasticsearch/elastic_response.js

+ 1 - 1
public/app/plugins/datasource/elasticsearch/elastic_response.js

@@ -209,7 +209,7 @@ function (_, queryDef) {
         throw { message: response.error };
         throw { message: response.error };
       }
       }
 
 
-      if (response.hits) {
+      if (response.hits && response.hits.hits.length > 0) {
         this.processHits(response.hits, seriesList);
         this.processHits(response.hits, seriesList);
       }
       }