mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
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_ITERATION_START_NODE) return
|
||||||
if (node.type === CUSTOM_LOOP_START_NODE) return
|
if (node.type === CUSTOM_LOOP_START_NODE) return
|
||||||
if (node.data.type === BlockEnum.DataSourceEmpty) return
|
if (node.data.type === BlockEnum.DataSourceEmpty) return
|
||||||
|
if (node.data._pluginInstallLocked) return
|
||||||
handleNodeSelect(node.id)
|
handleNodeSelect(node.id)
|
||||||
},
|
},
|
||||||
[handleNodeSelect],
|
[handleNodeSelect],
|
||||||
|
|||||||
@ -42,7 +42,8 @@ const NodeControl: FC<NodeControlProps> = ({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`
|
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'}
|
${data.selected && '!flex'}
|
||||||
${open && '!flex'}
|
${open && '!flex'}
|
||||||
`}
|
`}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user