Skip to content

Commit b219db5

Browse files
author
Scott Lepper
authored
fix template vars (#35)
* fix template vars
1 parent c847bfc commit b219db5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.9.5
4+
5+
Bug - Fix global template variables.
6+
37
## 0.9.4
48

59
Bug - Fix query type variables.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clickhouse-datasource",
3-
"version": "0.9.4",
3+
"version": "0.9.5",
44
"description": "Clickhouse Datasource",
55
"scripts": {
66
"build": "grafana-toolkit plugin:build",

src/data/CHDatasource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class Datasource extends DataSourceWithBackend<CHQuery, CHConfig> {
4040
applyTemplateVariables(query: CHQuery, scoped: ScopedVars): CHQuery {
4141
return {
4242
...query,
43-
rawSql: this.replace(query.rawSql || '') || '',
43+
rawSql: this.replace(query.rawSql || '', scoped) || '',
4444
};
4545
}
4646

0 commit comments

Comments
 (0)