|
|
@ -40,8 +40,8 @@ const populateTables = async () => { |
|
|
|
// if table is provided only get the table and its related tables |
|
|
|
// if table is provided only get the table and its related tables |
|
|
|
localTables = projectTables.value.filter( |
|
|
|
localTables = projectTables.value.filter( |
|
|
|
(t) => |
|
|
|
(t) => |
|
|
|
t.id === props.table.id || |
|
|
|
t.id === props.table?.id || |
|
|
|
props.table.columns?.find( |
|
|
|
props.table?.columns?.find( |
|
|
|
(column) => |
|
|
|
(column) => |
|
|
|
column.uidt === UITypes.LinkToAnotherRecord && |
|
|
|
column.uidt === UITypes.LinkToAnotherRecord && |
|
|
|
(column.colOptions as LinkToAnotherRecordType)?.fk_related_model_id === t.id, |
|
|
|
(column.colOptions as LinkToAnotherRecordType)?.fk_related_model_id === t.id, |
|
|
|