Elastic: Fix Elastic template variables interpolation when redirecting to Explore (#20314)

(cherry picked from commit 822b0b2708)
This commit is contained in:
Ivana Huckova
2019-11-14 08:33:19 -05:00
committed by Kyle Brandt
parent 8fa29f2497
commit 4d7edd3cd8
@@ -264,7 +264,7 @@ export class ElasticDatasource extends DataSourceApi<ElasticsearchQuery, Elastic
const expandedQuery = {
...query,
datasource: this.name,
query: this.templateSrv.replace(query.query),
query: this.templateSrv.replace(query.query, {}, 'lucene'),
};
return expandedQuery;
});