From 3b928e0ffbed39f86ae5778666ddfd2d2519ae18 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Mon, 12 Sep 2022 14:21:32 +0100 Subject: [PATCH] Compare string versions of relationship columns --- packages/server/src/api/controllers/row/ExternalRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/ExternalRequest.ts b/packages/server/src/api/controllers/row/ExternalRequest.ts index dd5778b9d9..25b26d461f 100644 --- a/packages/server/src/api/controllers/row/ExternalRequest.ts +++ b/packages/server/src/api/controllers/row/ExternalRequest.ts @@ -371,7 +371,7 @@ module External { const toColumn = `${linkedTable.name}.${relationship.to}` // this is important when working with multiple relationships // between the same tables, don't want to overlap/multiply the relations - if (!relationship.through && row[fromColumn] !== row[toColumn]) { + if (!relationship.through && row[fromColumn]?.toString() !== row[toColumn]?.toString()) { continue } let linked = basicProcessing(row, linkedTable)