From 3ddb3d2bffa30a24f939cab1e2c4b7d6500b4a77 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 28 Nov 2024 15:45:47 +0800 Subject: [PATCH] fix: deleted tools in agent --- web/app/components/app/configuration/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/app/configuration/index.tsx b/web/app/components/app/configuration/index.tsx index 70ce4274d7..fbb375aa27 100644 --- a/web/app/components/app/configuration/index.tsx +++ b/web/app/components/app/configuration/index.tsx @@ -622,7 +622,7 @@ const Configuration: FC = () => { }).map((tool: any) => { return { ...tool, - isDeleted: res.deleted_tools?.includes(tool.tool_name), + isDeleted: res.deleted_tools?.some((deletedTool: any) => deletedTool.id === tool.id && deletedTool.tool_name === tool.tool_name), notAuthor: collectionList.find(c => tool.provider_id === c.id)?.is_team_authorization === false, ...(tool.provider_type === 'builtin' ? { provider_id: correctProvider(tool.provider_name),