Use _id if populated

This commit is contained in:
Adria Navarro 2023-10-02 15:34:26 +02:00
parent 3546dfc0cf
commit 2df32b7b28
1 changed files with 1 additions and 0 deletions

View File

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