fix undefined 1:N dropdown selection
This commit is contained in:
parent
5a6306f49f
commit
2a3e4d8a42
|
@ -23,7 +23,7 @@
|
|||
if (fieldSchema?.relationshipType === "one-to-many") {
|
||||
if (value?.length && options?.length) {
|
||||
const row = options.find(row => row._id === value[0])
|
||||
return row.name
|
||||
return getDisplayName(row)
|
||||
} else {
|
||||
return placeholder || "Choose an option"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue