removed autoupdate on variabe refresh, don't needed if working interactive and fix #2722

This commit is contained in:
toni-moreno 2015-11-16 21:55:23 +01:00
parent a56f657fb1
commit 1c35d4b26b

View File

@ -45,17 +45,6 @@ function (angular, _, kbn) {
};
this.setVariableFromUrl = function(variable, urlValue) {
if (variable.refresh) {
var self = this;
//refresh the list of options before setting the value
return this.updateOptions(variable).then(function() {
var option = _.findWhere(variable.options, { text: urlValue });
option = option || { text: urlValue, value: urlValue };
self.updateAutoInterval(variable);
return self.setVariableValue(variable, option);
});
}
var option = _.findWhere(variable.options, { text: urlValue });
option = option || { text: urlValue, value: urlValue };