From a1734eb376db2642405dc46a4beede8c3f9f79de Mon Sep 17 00:00:00 2001 From: Ganesh Mani Date: Thu, 12 Sep 2024 00:30:58 +0530 Subject: [PATCH] fix: restrict relationship handle on views --- src/pages/editor-page/canvas/table-node/table-node-field.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/editor-page/canvas/table-node/table-node-field.tsx b/src/pages/editor-page/canvas/table-node/table-node-field.tsx index 0584f61e5..3b9233548 100644 --- a/src/pages/editor-page/canvas/table-node/table-node-field.tsx +++ b/src/pages/editor-page/canvas/table-node/table-node-field.tsx @@ -21,10 +21,11 @@ export interface TableNodeFieldProps { focused: boolean; highlighted: boolean; visible: boolean; + isView: boolean; } export const TableNodeField: React.FC = React.memo( - ({ field, focused, tableNodeId, highlighted, visible }) => { + ({ field, focused, tableNodeId, highlighted, visible, isView }) => { const { removeField, relationships } = useChartDB(); const updateNodeInternals = useUpdateNodeInternals(); const connection = useConnection();