1
0
Fork 0
mirror of synced 2024-08-23 05:51:29 +12:00
This commit is contained in:
Adria Navarro 2024-05-06 08:20:36 +02:00
parent a86d23584e
commit fbc969eda4

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) => {