Explorar el Código

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

Torkel Ödegaard hace 9 años
padre
commit
d26d7162a5
Se han modificado 1 ficheros con 3 adiciones y 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:  {