Skip to content

Commit

Permalink
Added support for variable in summary interval
Browse files Browse the repository at this point in the history
  • Loading branch information
coderReview committed Jun 12, 2024
1 parent 64c4e6d commit 58c8a48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ export class PiWebAPIDatasource extends DataSourceWithBackend<PIWebAPIQuery, PIW
tar.summary.types = filter(tar.summary.types, (item) => {
return item !== undefined && item !== null && item !== '';
});
tar.summary.interval = !!tar.summary.interval
? this.templateSrv.replace(tar.summary.interval, options.scopedVars)
: tar.summary.interval;
}

return tar;
Expand Down

0 comments on commit 58c8a48

Please sign in to comment.