1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Add "flag"

This commit is contained in:
Adria Navarro 2024-08-22 17:28:10 +02:00
parent b3cd06944f
commit c397dadd76

View file

@ -272,7 +272,8 @@ export async function squashLinksToPrimaryDisplay(
const obj: any = { _id: link._id }
obj.primaryDisplay = getPrimaryDisplayValue(link, linkedTable)
if (schema.schema) {
const allowRelationshipSchemas = true // TODO
if (schema.schema && allowRelationshipSchemas) {
for (const relField of Object.entries(schema.schema)
.filter(([_, field]) => field.visible !== false)
.map(([fieldKey]) => fieldKey)) {