fix data grid join problem #565

This commit is contained in:
SPRINX0\prochazka
2025-02-13 15:54:40 +01:00
parent 6ae536d035
commit 60a72f4d45

View File

@@ -149,7 +149,8 @@ export class TableGridDisplay extends GridDisplay {
}, },
right: { right: {
exprType: 'column', exprType: 'column',
columnName: table.primaryKey.columns[0].columnName, columnName:
column.foreignKey?.columns?.[0]?.refColumnName ?? table.primaryKey?.columns?.[0]?.columnName,
source: { name: table, alias: childAlias }, source: { name: table, alias: childAlias },
}, },
}, },