[v9.4.x] InfluxDB datasource: Query variable breaks trying to interpolate __interval (#63685)
InfluxDB ds: Query variable breaks trying to interpolate `__interval` (#63682) (cherry picked from commitca4cd85504) Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com> (cherry picked from commit30f3f63bd6)
This commit is contained in:
@@ -180,7 +180,7 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
|
||||
|
||||
applyTemplateVariables(query: InfluxQuery, scopedVars: ScopedVars): Record<string, any> {
|
||||
// We want to interpolate these variables on backend
|
||||
const { __interval, __interval_ms, ...rest } = scopedVars;
|
||||
const { __interval, __interval_ms, ...rest } = scopedVars || {};
|
||||
|
||||
if (this.isFlux) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user