Commit d26d7162 by Torkel Ödegaard

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

parent 990acb3f
...@@ -69,6 +69,9 @@ function (angular, _) { ...@@ -69,6 +69,9 @@ function (angular, _) {
return '(' + quotedValues.join(' OR ') + ')'; return '(' + quotedValues.join(' OR ') + ')';
} }
case "pipe": { case "pipe": {
if (typeof value === 'string') {
return value;
}
return value.join('|'); return value.join('|');
} }
default: { default: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment