fix(reactflowUtils.ts): only add updated edges to the array if they are connected to the group node
This commit is contained in:
parent
c5d9a390eb
commit
c0befa83ac
1 changed files with 6 additions and 2 deletions
|
|
@ -744,7 +744,9 @@ export function ungroupNode(
|
||||||
newEdge.data.sourceHandle = newSourceHandle;
|
newEdge.data.sourceHandle = newSourceHandle;
|
||||||
newEdge.sourceHandle = scapedJSONStringfy(newSourceHandle);
|
newEdge.sourceHandle = scapedJSONStringfy(newSourceHandle);
|
||||||
}
|
}
|
||||||
updatedEdges.push(newEdge);
|
if(newEdge.target === groupNode.id || newEdge.source === groupNode.id){
|
||||||
|
updatedEdges.push(newEdge);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//update template values
|
//update template values
|
||||||
Object.keys(template).forEach((key) => {
|
Object.keys(template).forEach((key) => {
|
||||||
|
|
@ -828,7 +830,9 @@ export function expandGroupNode(
|
||||||
newEdge.data.sourceHandle = newSourceHandle;
|
newEdge.data.sourceHandle = newSourceHandle;
|
||||||
newEdge.sourceHandle = scapedJSONStringfy(newSourceHandle);
|
newEdge.sourceHandle = scapedJSONStringfy(newSourceHandle);
|
||||||
}
|
}
|
||||||
updatedEdges.push(newEdge);
|
if(newEdge.target === groupNode.id || newEdge.source === groupNode.id){
|
||||||
|
updatedEdges.push(newEdge);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//update template values
|
//update template values
|
||||||
Object.keys(template).forEach((key) => {
|
Object.keys(template).forEach((key) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue