From 39fe85400d86df34530eb72f780607cd1d8420f2 Mon Sep 17 00:00:00 2001 From: jiangchu Date: Wed, 28 Feb 2024 17:49:50 +0800 Subject: [PATCH] :bug: fix: rm repeat call --- src/FlowEditor/container/FlowEditor.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/FlowEditor/container/FlowEditor.tsx b/src/FlowEditor/container/FlowEditor.tsx index adf3816..ed8ea98 100644 --- a/src/FlowEditor/container/FlowEditor.tsx +++ b/src/FlowEditor/container/FlowEditor.tsx @@ -244,14 +244,6 @@ const FlowEditor = forwardRef( const edge = updateEdgesOnConnection(connection); if (afterConnect && edge) { - // 触发 edges change 事件 - handleEdgesChange([ - { - item: edge, - type: 'add', - }, - ]); - afterConnect(edge); } },