Add "flag"

This commit is contained in:
Adria Navarro 2024-08-22 17:28:10 +02:00
parent b3cd06944f
commit c397dadd76
1 changed files with 2 additions and 1 deletions

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)) {