fix: workflow delete edge when node is selected (#4414)
This commit is contained in:
parent
182dadd433
commit
c0fe414e0a
1 changed files with 5 additions and 0 deletions
|
|
@ -922,8 +922,13 @@ export const useNodesInteractions = () => {
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getNodes,
|
getNodes,
|
||||||
|
edges,
|
||||||
} = store.getState()
|
} = store.getState()
|
||||||
|
|
||||||
|
const edgeSelected = edges.some(edge => edge.selected)
|
||||||
|
if (edgeSelected)
|
||||||
|
return
|
||||||
|
|
||||||
const nodes = getNodes()
|
const nodes = getNodes()
|
||||||
const bundledNodes = nodes.filter(node => node.data._isBundled && node.data.type !== BlockEnum.Start)
|
const bundledNodes = nodes.filter(node => node.data._isBundled && node.data.type !== BlockEnum.Start)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue