1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

Compare string versions of relationship columns

This commit is contained in:
Mel O'Hagan 2022-09-12 14:21:32 +01:00
parent a38626cf66
commit 3b928e0ffb

View file

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