fix(templating): fixed issue with templating when initalizing variables without any existing value

This commit is contained in:
Torkel Ödegaard
2016-09-22 21:49:41 +02:00
parent 0fc7405b95
commit e36cdac594
2 changed files with 12 additions and 10 deletions

View File

@@ -43,6 +43,10 @@ function (angular, _, kbn) {
}
};
this.variableInitialized = function(variable) {
this._index[variable.name] = variable;
};
this.getAdhocFilters = function(datasourceName) {
var variable = this._adhocVariables[datasourceName];
if (variable) {