diff --git a/public/app/features/templating/template_srv.ts b/public/app/features/templating/template_srv.ts index e7c1dc7f102..99a9f53d547 100644 --- a/public/app/features/templating/template_srv.ts +++ b/public/app/features/templating/template_srv.ts @@ -74,6 +74,9 @@ export class TemplateSrv { if (typeof value === 'string') { return luceneEscape(value); } + if (value instanceof Array && value.length === 0) { + return '__empty__'; + } var quotedValues = _.map(value, function(val) { return '"' + luceneEscape(val) + '"'; });