[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 commit ca4cd85504)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
(cherry picked from commit 30f3f63bd6)
This commit is contained in:
Grot (@grafanabot)
2023-02-23 13:57:45 -06:00
committed by Stephanie Hingtgen
parent 3d99babd0f
commit fcd658359c
@@ -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 {