1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Use _id if populated

This commit is contained in:
Adria Navarro 2023-10-02 15:34:26 +02:00
parent 3546dfc0cf
commit 2df32b7b28

View file

@ -27,6 +27,7 @@
const columnId =
column.through ||
column._id ||
(column.main
? `${tableId}_${column.fieldName}__${column.tableId}_${column.foreignKey}`
: `${column.tableId}_${column.foreignKey}__${tableId}_${column.fieldName}`)