mirror of https://github.com/langgenius/dify.git
fix(trigger): incorrect behavior when node uninstalled on the canvas
This commit is contained in:
parent
36ad784251
commit
2725f28fa8
|
|
@ -396,6 +396,7 @@ export const useNodesInteractions = () => {
|
|||
if (node.type === CUSTOM_ITERATION_START_NODE) return
|
||||
if (node.type === CUSTOM_LOOP_START_NODE) return
|
||||
if (node.data.type === BlockEnum.DataSourceEmpty) return
|
||||
if (node.data._pluginInstallLocked) return
|
||||
handleNodeSelect(node.id)
|
||||
},
|
||||
[handleNodeSelect],
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ const NodeControl: FC<NodeControlProps> = ({
|
|||
return (
|
||||
<div
|
||||
className={`
|
||||
absolute -top-7 right-0 hidden h-7 pb-1 group-hover:flex
|
||||
absolute -top-7 right-0 hidden h-7 pb-1
|
||||
${!data._pluginInstallLocked && 'group-hover:flex'}
|
||||
${data.selected && '!flex'}
|
||||
${open && '!flex'}
|
||||
`}
|
||||
|
|
|
|||
Loading…
Reference in New Issue