Add support for new relationship objects in client app bindings
This commit is contained in:
parent
aab74cce1a
commit
bd5bac4ef2
|
@ -120,7 +120,11 @@ export const enrichRows = async (rows, tableId) => {
|
||||||
const type = schema[key].type
|
const type = schema[key].type
|
||||||
if (type === "link") {
|
if (type === "link") {
|
||||||
// Enrich row a string join of relationship fields
|
// Enrich row a string join of relationship fields
|
||||||
row[`${key}_text`] = row[key]?.join(", ") || ""
|
row[`${key}_text`] =
|
||||||
|
row[key]
|
||||||
|
?.map(option => option?.primaryDisplay)
|
||||||
|
.filter(option => !!option)
|
||||||
|
.join(", ") || ""
|
||||||
} else if (type === "attachment") {
|
} else if (type === "attachment") {
|
||||||
// Enrich row with the first image URL for any attachment fields
|
// Enrich row with the first image URL for any attachment fields
|
||||||
let url = null
|
let url = null
|
||||||
|
|
Loading…
Reference in New Issue