fix(web): correct deleted tools matching to use provider_id instead of id (#30138)

Signed-off-by: majiayu000 <1835304752@qq.com>
This commit is contained in:
lif 2025-12-25 19:49:26 +08:00 committed by GitHub
parent 0f3ffbee2c
commit 44fc0c614c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ const Configuration: FC = () => {
const toolInCollectionList = collectionList.find(c => tool.provider_id === c.id) const toolInCollectionList = collectionList.find(c => tool.provider_id === c.id)
return { return {
...tool, ...tool,
isDeleted: res.deleted_tools?.some((deletedTool: any) => deletedTool.id === tool.id && deletedTool.tool_name === tool.tool_name) ?? false, isDeleted: res.deleted_tools?.some((deletedTool: any) => deletedTool.provider_id === tool.provider_id && deletedTool.tool_name === tool.tool_name) ?? false,
notAuthor: toolInCollectionList?.is_team_authorization === false, notAuthor: toolInCollectionList?.is_team_authorization === false,
...(tool.provider_type === 'builtin' ...(tool.provider_type === 'builtin'
? { ? {