fix: deleted tools in agent

This commit is contained in:
JzoNg 2024-11-28 15:45:47 +08:00
parent a70eda6c45
commit 3ddb3d2bff
1 changed files with 1 additions and 1 deletions

View File

@ -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),