Fix initial load empty

This commit is contained in:
Adria Navarro 2023-09-26 10:26:12 +02:00
parent db2fcf3606
commit 9f391ed2d9
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,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
initialValuesProcessed = true
optionsObj = fieldState?.value?.reduce((accumulator, value) => {
optionsObj = (fieldState?.value || []).reduce((accumulator, value) => {
accumulator[value._id] = {
_id: value._id,
[primaryDisplay]: value.primaryDisplay,