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

This commit is contained in:
Joao Silva 2022-05-04 14:27:22 +01:00 committed by GitHub
parent 8fcae1ef3c
commit 2e5f797666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++) {