From c397dadd76b174368d6648f4b17eb7df21c08727 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 22 Aug 2024 17:28:10 +0200 Subject: [PATCH] Add "flag" --- packages/server/src/db/linkedRows/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/db/linkedRows/index.ts b/packages/server/src/db/linkedRows/index.ts index 04755cd601..2394d00d0e 100644 --- a/packages/server/src/db/linkedRows/index.ts +++ b/packages/server/src/db/linkedRows/index.ts @@ -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)) {