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
This commit is contained in:
parent
4cdd66d1d3
commit
c5d9a390eb
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue