mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Trying to make progres on persisting selection state, restoring selection state for new multi variable dropdown, proving to be really complex
This commit is contained in:
@@ -130,6 +130,10 @@ function (angular, _, kbn) {
|
||||
// if parameter has current value
|
||||
// if it exists in options array keep value
|
||||
if (variable.current) {
|
||||
// if current value is an array do not do anything
|
||||
if (_.isArray(variable.current.value)) {
|
||||
return $q.when([]);
|
||||
}
|
||||
var currentOption = _.findWhere(variable.options, { text: variable.current.text });
|
||||
if (currentOption) {
|
||||
return self.setVariableValue(variable, currentOption);
|
||||
|
||||
Reference in New Issue
Block a user