mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: Fixes issue with null variables breaking the dropdown (#48644)
This commit is contained in:
parent
8fcae1ef3c
commit
2e5f797666
@ -130,6 +130,7 @@ const sharedReducerSlice = createSlice({
|
||||
instanceState.current = current;
|
||||
instanceState.options = instanceState.options.map((option) => {
|
||||
option.value = ensureStringValues(option.value);
|
||||
option.text = ensureStringValues(option.text);
|
||||
let selected = false;
|
||||
if (Array.isArray(current.value)) {
|
||||
for (let index = 0; index < current.value.length; index++) {
|
||||
|
Loading…
Reference in New Issue
Block a user