Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Fix wrong variable expansion format
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
zarbis authored Dec 21, 2018
1 parent 2924b8c commit 08af07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class InfluxDatasource {
// Replace grafana variables
const timeFilter = this.getTimeFilter(options);
options.scopedVars.range = {value: timeFilter};
const interpolated = this.templateSrv.replace(target.query, options.scopedVars);
const interpolated = this.templateSrv.replace(target.query, options.scopedVars, 'pipe');
return {
...target,
query: interpolated,
Expand Down

0 comments on commit 08af07d

Please sign in to comment.