Explorar o código

fix(influxdb): fixed influxdb template var filter suggestion, fixes #2666

Torkel Ödegaard %!s(int64=10) %!d(string=hai) anos
pai
achega
cd6bdc1a78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/plugins/datasource/influxdb/queryCtrl.js

+ 1 - 1
public/app/plugins/datasource/influxdb/queryCtrl.js

@@ -136,7 +136,7 @@ function (angular, _, InfluxQueryBuilder) {
 
         if (addTemplateVars) {
           _.each(templateSrv.variables, function(variable) {
-            segments.unshift(new MetricSegment({ type: 'template', value: '/$' + variable.name + '/', expandable: true }));
+            segments.unshift(new MetricSegment({ type: 'template', value: '/$' + variable.name + '$/', expandable: true }));
           });
         }