Variables: Fixes issue with null variables breaking the dropdown (#48644) (#48702)

This commit is contained in:
Grot (@grafanabot)
2022-05-04 15:28:17 +01:00
committed by GitHub
parent ed24f18234
commit 925d5f76b2
@@ -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++) {