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

View File

@@ -679,7 +679,7 @@ const Configuration: FC = () => {
const toolInCollectionList = collectionList.find(c => tool.provider_id === c.id)
return {
...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,
...(tool.provider_type === 'builtin'
? {