diff --git a/public/app/features/templating/query_variable.ts b/public/app/features/templating/query_variable.ts index a9ac6aa02b9..82f180b1f94 100644 --- a/public/app/features/templating/query_variable.ts +++ b/public/app/features/templating/query_variable.ts @@ -93,7 +93,7 @@ export class QueryVariable implements Variable { var regex, options, i, matches; options = []; - if (this.model.regex) { + if (this.regex) { regex = kbn.stringToJsRegex(this.templateSrv.replace(this.regex)); }