Commit b1cf4cf0 by Torkel Ödegaard

fix: InfluxDB Query Editor and selecting template variable in where clause…

fix: InfluxDB Query Editor and selecting template variable in where clause caused issue, fixes #10402, fixes #10663
parent 47965848
......@@ -89,7 +89,7 @@ function (angular, _, coreModule) {
if (addTemplateVars) {
_.each(templateSrv.variables, function(variable) {
if (variableTypeFilter === void 0 || variableTypeFilter === variable.type) {
segments.unshift(self.newSegment({ type: 'template', value: '$' + variable.name, expandable: true }));
segments.unshift(self.newSegment({ type: 'value', value: '$' + variable.name, expandable: true }));
}
});
}
......
......@@ -255,7 +255,7 @@ export class InfluxQueryCtrl extends QueryCtrl {
for (let variable of this.templateSrv.variables) {
segments.unshift(
this.uiSegmentSrv.newSegment({
type: 'template',
type: 'value',
value: '/^$' + variable.name + '$/',
expandable: true,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment