Explorar o código

fix(opentsdb): fixed templating issue for single value variables, fixes #4312

Torkel Ödegaard %!s(int64=9) %!d(string=hai) anos
pai
achega
d26d7162a5
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      public/app/features/templating/templateSrv.js

+ 3 - 0
public/app/features/templating/templateSrv.js

@@ -69,6 +69,9 @@ function (angular, _) {
           return '(' + quotedValues.join(' OR ') + ')';
         }
         case "pipe": {
+          if (typeof value === 'string') {
+            return value;
+          }
           return value.join('|');
         }
         default:  {