This commit is contained in:
@@ -279,11 +279,11 @@ function (angular, _, config, kbn, moment) {
|
|||||||
return { dashboards: [], tags: [] };
|
return { dashboards: [], tags: [] };
|
||||||
}
|
}
|
||||||
|
|
||||||
var resultsHits = results.hits;
|
var resultsHits = results.hits.hits;
|
||||||
var displayHits = { dashboards: [], tags: results.facets.tags.terms || [] };
|
var displayHits = { dashboards: [], tags: results.facets.tags.terms || [] };
|
||||||
|
|
||||||
for (var i = 0, len = resultsHits.total; i < len; i++) {
|
for (var i = 0, len = resultsHits.length; i < len; i++) {
|
||||||
var hit = resultsHits.hits[i];
|
var hit = resultsHits[i];
|
||||||
displayHits.dashboards.push({
|
displayHits.dashboards.push({
|
||||||
id: hit._id,
|
id: hit._id,
|
||||||
title: hit._source.title,
|
title: hit._source.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user