From c5d9a390eb28f098a8dd619bc983609df9d6ab7f Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 14 Sep 2023 20:34:19 -0300 Subject: [PATCH] fix(reactflowUtils.ts): add missing assignment of newSourceHandle to newEdge.data.sourceHandle to ensure data consistency fix(reactflowUtils.ts): add missing assignment of newTargetHandle to newEdge.data.targetHandle to ensure data consistency --- src/frontend/src/utils/reactflowUtils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 755f4df59..def6ce523 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -815,6 +815,7 @@ export function expandGroupNode( if(inputTypes){ newTargetHandle.inputTypes = inputTypes; } + newEdge.data.targetHandle = newTargetHandle; newEdge.targetHandle = scapedJSONStringfy(newTargetHandle); } } @@ -824,6 +825,7 @@ export function expandGroupNode( newEdge.source = lastNode!.id; let newSourceHandle: sourceHandleType = scapeJSONParse(newEdge.sourceHandle!); newSourceHandle.id = lastNode!.id; + newEdge.data.sourceHandle = newSourceHandle; newEdge.sourceHandle = scapedJSONStringfy(newSourceHandle); } updatedEdges.push(newEdge);