fix: edge

This commit is contained in:
StyleZhang
2024-04-01 12:53:17 +08:00
parent 50a7c2c92c
commit ffb698922a
3 changed files with 22 additions and 26 deletions

View File

@ -303,6 +303,7 @@ export const useNodesInteractions = () => {
targetType: nodes.find(node => node.id === target)!.data.type,
},
}
console.log(needDeleteEdges, '1')
const nodesConnectedSourceOrTargetHandleIdsMap = getNodesConnectedSourceOrTargetHandleIdsMap(
[
...needDeleteEdges.map(edge => ({ type: 'remove', edge })),