mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InfluxDB ds: Query variable breaks trying to interpolate __interval
(#63682)
This commit is contained in:
parent
98e1aeaebd
commit
ca4cd85504
@ -180,7 +180,7 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
|
|||||||
|
|
||||||
applyTemplateVariables(query: InfluxQuery, scopedVars: ScopedVars): Record<string, any> {
|
applyTemplateVariables(query: InfluxQuery, scopedVars: ScopedVars): Record<string, any> {
|
||||||
// We want to interpolate these variables on backend
|
// We want to interpolate these variables on backend
|
||||||
const { __interval, __interval_ms, ...rest } = scopedVars;
|
const { __interval, __interval_ms, ...rest } = scopedVars || {};
|
||||||
|
|
||||||
if (this.isFlux) {
|
if (this.isFlux) {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user