Merge branch 'develop' into chore/relation_deletions

This commit is contained in:
Adria Navarro 2023-09-29 16:39:50 +02:00 committed by GitHub
commit ca8bf5c5ca
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{
"version": "2.10.16-alpha.14",
"version": "2.10.16-alpha.15",
"npmClient": "yarn",
"packages": [
"packages/*"

View File

@ -60,6 +60,12 @@
// even if they are not in the inital fetch results
initialValuesProcessed = true
optionsObj = (fieldState?.value || []).reduce((accumulator, value) => {
// fieldState has to be an array of strings to be valid for an update
// therefore we cannot guarantee value will be an object
// https://linear.app/budibase/issue/BUDI-7577/refactor-the-relationshipfield-component-to-have-better-support-for
if (!value._id) {
return accumulator
}
accumulator[value._id] = {
_id: value._id,
[primaryDisplay]: value.primaryDisplay,