mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 20:55:53 +08:00
fix: workflow delete edge when node is selected (#4414)
This commit is contained in:
parent
182dadd433
commit
c0fe414e0a
@ -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…
x
Reference in New Issue
Block a user