configure error of provider card

This commit is contained in:
JzoNg 2025-05-12 11:17:36 +08:00
parent c427aafb94
commit 274d5c02f6

View File

@ -74,7 +74,7 @@ const MCPCard = ({
hideDeleteConfirm()
onUpdate()
}
}, [data, showDeleting, hideDeleting, hideDeleteConfirm, onUpdate])
}, [showDeleting, deleteMCP, data.id, hideDeleting, hideDeleteConfirm, onUpdate])
return (
<div
@ -108,7 +108,7 @@ const MCPCard = ({
<div className='flex items-center gap-1 rounded-b-xl pb-2.5 pl-4 pr-2.5 pt-1.5'>
<div className='system-xs-regular grow truncate text-text-tertiary' title={data.server_url}>{data.server_url}</div>
{data.is_team_authorization && <Indicator color='green' />}
{!data.is_team_authorization && (
{(!data.is_team_authorization || !data.tools.length) && (
<div className='system-xs-medium flex shrink-0 items-center gap-1 rounded-md border border-util-colors-red-red-500 bg-components-badge-bg-red-soft px-1.5 py-0.5 text-util-colors-red-red-500'>
{t('tools.mcp.noConfigured')}
<Indicator color='red' />