Просмотр исходного кода

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

Torkel Ödegaard 10 лет назад
Родитель
Сommit
2cbc62d6c0
1 измененных файлов с 1 добавлено и 1 удалено
  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 };
       }
 
-      if (response.hits) {
+      if (response.hits && response.hits.hits.length > 0) {
         this.processHits(response.hits, seriesList);
       }