From 1c35d4b26b1bd027053bb29cf35364feb06d2d21 Mon Sep 17 00:00:00 2001 From: toni-moreno Date: Mon, 16 Nov 2015 21:55:23 +0100 Subject: [PATCH] removed autoupdate on variabe refresh, don't needed if working interactive and fix #2722 --- public/app/features/templating/templateValuesSrv.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/public/app/features/templating/templateValuesSrv.js b/public/app/features/templating/templateValuesSrv.js index 81e40284667..6029bdf899c 100644 --- a/public/app/features/templating/templateValuesSrv.js +++ b/public/app/features/templating/templateValuesSrv.js @@ -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 };