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
1868540a10
commit
4cdd66d1d3
1 changed files with 2 additions and 0 deletions
|
|
@ -731,6 +731,7 @@ export function ungroupNode(
|
|||
if(inputTypes){
|
||||
newTargetHandle.inputTypes = inputTypes;
|
||||
}
|
||||
newEdge.data.targetHandle = newTargetHandle;
|
||||
newEdge.targetHandle = scapedJSONStringfy(newTargetHandle);
|
||||
}
|
||||
}
|
||||
|
|
@ -740,6 +741,7 @@ export function ungroupNode(
|
|||
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