remove node-info for non mcp (#22595)

This commit is contained in:
znn 2025-07-18 06:55:57 +05:30 committed by GitHub
parent 62586719b3
commit 3826b57424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ import cn from '@/utils/classnames'
import BlockIcon from '@/app/components/workflow/block-icon'
import Tooltip from '@/app/components/base/tooltip'
import useInspectVarsCrud from '../../hooks/use-inspect-vars-crud'
import { ToolTypeEnum } from '../../block-selector/types'
type BaseNodeProps = {
children: ReactElement
@ -322,7 +323,7 @@ const BaseNode: FC<BaseNodeProps> = ({
</div>
)
}
{data.type === BlockEnum.Tool && (
{data.type === BlockEnum.Tool && data.provider_type === ToolTypeEnum.MCP && (
<div className='px-3 pb-2'>
<CopyID content={data.provider_id || ''} />
</div>