Fix cast
This commit is contained in:
parent
a86d23584e
commit
fbc969eda4
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue