浏览代码

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

Torkel Ödegaard 9 年之前
父节点
当前提交
d26d7162a5
共有 1 个文件被更改,包括 3 次插入0 次删除
  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:  {