fix: right click node not display the node detail panel (#35554)

This commit is contained in:
非法操作
2026-04-24 16:31:19 +08:00
committed by GitHub
parent 791fc5819d
commit 7bcedcbaab
2 changed files with 3 additions and 2 deletions

View File

@@ -1712,7 +1712,7 @@ export const useNodesInteractions = () => {
nodeId: node.id,
},
})
handleNodeSelect(node.id)
handleNodeSelect(node.id, true)
},
[workflowStore, handleNodeSelect],
)

View File

@@ -79,6 +79,7 @@ const BaseNode: FC<BaseNodeProps> = ({
const appId = useStore(s => s.appId)
const { nodePanelPresence } = useCollaboration(appId as string)
const controlMode = useStore(s => s.controlMode)
const isContextMenuTarget = useStore(s => s.nodeMenu?.nodeId === id)
const currentUserPresence = useMemo(() => {
const userId = userProfile?.id || ''
@@ -123,7 +124,7 @@ const BaseNode: FC<BaseNodeProps> = ({
const { hasNodeInspectVars } = useInspectVarsCrud()
const isLoading = data._runningStatus === NodeRunningStatus.Running || data._singleRunningStatus === NodeRunningStatus.Running
const hasVarValue = hasNodeInspectVars(id)
const showSelectedBorder = Boolean(data.selected || data._isBundled || data._isEntering)
const showSelectedBorder = Boolean(data.selected || isContextMenuTarget || data._isBundled || data._isEntering)
const {
showRunningBorder,
showSuccessBorder,