From f3684ec15208830f02d97f8248e0720f9c2ed315 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 16 Mar 2023 16:32:26 +0800 Subject: [PATCH] fix(nc-gui): add nullable chain --- packages/nc-gui/components/erd/View.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/erd/View.vue b/packages/nc-gui/components/erd/View.vue index 4857bf4779..2870b87a86 100644 --- a/packages/nc-gui/components/erd/View.vue +++ b/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,