fix(trigger): incorrect behavior when node uninstalled on the canvas

This commit is contained in:
hjlarry 2025-11-12 10:12:49 +08:00
parent 36ad784251
commit 2725f28fa8
2 changed files with 3 additions and 1 deletions

View File

@ -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],

View File

@ -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'}
`}