Skip to content

Commit

Permalink
fix: restrict relationship handle on views
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshmani authored and guyb1 committed Sep 16, 2024
1 parent 0d31b96 commit a1734eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/editor-page/canvas/table-node/table-node-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ export interface TableNodeFieldProps {
focused: boolean;
highlighted: boolean;
visible: boolean;
isView: boolean;
}

export const TableNodeField: React.FC<TableNodeFieldProps> = React.memo(
({ field, focused, tableNodeId, highlighted, visible }) => {
({ field, focused, tableNodeId, highlighted, visible, isView }) => {
const { removeField, relationships } = useChartDB();
const updateNodeInternals = useUpdateNodeInternals();
const connection = useConnection();
Expand Down

0 comments on commit a1734eb

Please sign in to comment.