Elasticsearch: check for filter type when accessing field aggs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user