mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added guard for template variables missing query field, Fixes #1501
This commit is contained in:
parent
47c6c6e1b7
commit
596dfc304d
@ -45,6 +45,9 @@ function (angular, _) {
|
||||
};
|
||||
|
||||
this.containsVariable = function(str, variableName) {
|
||||
if (!str) {
|
||||
return false;
|
||||
}
|
||||
return str.indexOf('$' + variableName) !== -1 || str.indexOf('[[' + variableName + ']]') !== -1;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user