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

pull/48176/head^2
Joao Silva 3 years ago committed by GitHub
parent 8fcae1ef3c
commit 2e5f797666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      public/app/features/variables/state/sharedReducer.ts

@ -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…
Cancel
Save