This commit is contained in:
Adria Navarro 2024-05-06 08:20:36 +02:00
parent a86d23584e
commit fbc969eda4
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@
// Persist the initial values as options, allowing them to be present in the dropdown,
// even if they are not in the inital fetch results
let valueAsSafeArray = fieldState.value || []
if (!Array.isArray(fieldState.value)) {
if (!Array.isArray(valueAsSafeArray)) {
valueAsSafeArray = [fieldState.value]
}
optionsObj = valueAsSafeArray.reduce((accumulator, value) => {