diff --git a/packages/client/src/components/app/forms/RelationshipField.svelte b/packages/client/src/components/app/forms/RelationshipField.svelte index d054a4a558..768f784d49 100644 --- a/packages/client/src/components/app/forms/RelationshipField.svelte +++ b/packages/client/src/components/app/forms/RelationshipField.svelte @@ -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,