mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki ds: Interpolation breaks in Loki queries when no scoped vars (#63694)
This commit is contained in:
parent
6cee0cdbad
commit
14e29451cf
@ -981,7 +981,7 @@ export class LokiDatasource
|
||||
// Used when running queries through backend
|
||||
applyTemplateVariables(target: LokiQuery, scopedVars: ScopedVars): LokiQuery {
|
||||
// We want to interpolate these variables on backend
|
||||
const { __interval, __interval_ms, ...rest } = scopedVars;
|
||||
const { __interval, __interval_ms, ...rest } = scopedVars || {};
|
||||
|
||||
const exprWithAdHoc = this.addAdHocFilters(target.expr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user