Fix for multi-value template variable for project selector (#29042)

This commit is contained in:
Sofia Papagiannaki 2020-11-12 11:03:51 +02:00 committed by GitHub
parent 3519330166
commit 0c054d1a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,8 @@ export default class CloudMonitoringDatasource extends DataSourceApi<CloudMonito
metricQuery: {
...this.interpolateProps(metricQuery, scopedVars),
projectName: this.templateSrv.replace(
metricQuery.projectName ? metricQuery.projectName : this.getDefaultProject()
metricQuery.projectName ? metricQuery.projectName : this.getDefaultProject(),
scopedVars
),
filters: this.interpolateFilters(metricQuery.filters || [], scopedVars),
groupBys: this.interpolateGroupBys(metricQuery.groupBys || [], scopedVars),