From efc66b014b756edf0a299d28457320c1febeb0f3 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 20 Mar 2024 16:04:19 -0300 Subject: [PATCH] Refactor reconnectEdges function to fix bug --- src/frontend/src/utils/reactflowUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 0d36bc76d..2f3d6e81d 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -637,8 +637,8 @@ export function generateFlow( } export function reconnectEdges(groupNode: NodeType, excludedEdges: Edge[]) { - let newEdges = cloneDeep(excludedEdges); if (!groupNode.data.node!.flow) return []; + let newEdges = cloneDeep(excludedEdges); const { nodes, edges } = groupNode.data.node!.flow!.data!; const lastNode = findLastNode(groupNode.data.node!.flow!.data!); newEdges.forEach((edge) => {