Ver Fonte

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

Torkel Ödegaard há 9 anos atrás
pai
commit
d26d7162a5
1 ficheiros alterados com 3 adições e 0 exclusões
  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:  {