Skip to content

Commit

Permalink
🐛 fix: rm repeat call
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu committed Feb 28, 2024
1 parent effd14a commit 39fe854
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/FlowEditor/container/FlowEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,6 @@ const FlowEditor = forwardRef<any, FlowEditorAppProps>(
const edge = updateEdgesOnConnection(connection);

if (afterConnect && edge) {
// 触发 edges change 事件
handleEdgesChange([
{
item: edge,
type: 'add',
},
]);

afterConnect(edge);
}
},
Expand Down

0 comments on commit 39fe854

Please sign in to comment.