Elasticsearch: check for filter type when accessing field aggs

This commit is contained in:
Matias Chomicki
2023-06-07 17:14:30 +02:00
parent 77df7eddf8
commit 178c2746ba
@@ -801,6 +801,9 @@ export class ElasticDatasource
if (target.bucketAggs) {
for (const bucketAgg of target.bucketAggs) {
if (bucketAgg.type !== 'filters' && this.templateSrv.containsTemplate(bucketAgg.field)) {
return true;
}
if (this.objectContainsTemplate(bucketAgg.settings)) {
return true;
}