Refactor reconnectEdges function to fix bug
This commit is contained in:
parent
5b0b101f37
commit
efc66b014b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue