1
0
Fork 0
mirror of synced 2024-07-09 08:16:34 +12:00

Fix initial load empty

This commit is contained in:
Adria Navarro 2023-09-26 10:26:12 +02:00
parent db2fcf3606
commit 9f391ed2d9

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,