Browse Source

fix(nc-gui): add nullable chain

pull/5307/head
Wing-Kam Wong 2 years ago
parent
commit
f3684ec152
  1. 4
      packages/nc-gui/components/erd/View.vue

4
packages/nc-gui/components/erd/View.vue

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

Loading…
Cancel
Save