소스 검색

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:  {