Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: fe tool filter missing different languages handling (#5558)

Yeuoly0c352eef2d1a
diff --git a/web/app/components/tools/add-tool-modal/index.tsx b/web/app/components/tools/add-tool-modal/index.tsx
index a3a3694e8c2..02e4c656ba3 100644
--- a/web/app/components/tools/add-tool-modal/index.tsx
+++ b/web/app/components/tools/add-tool-modal/index.tsx
@@ -83,7 +83,9 @@ const AddToolModal: FC<Props> = ({
return toolWithProvider.labels.includes(currentCategory)
}).filter((toolWithProvider) => {
return toolWithProvider.tools.some((tool) => {
- return tool.label[language].toLowerCase().includes(keywords.toLowerCase())
+ return Object.values(tool.label).some((label) => {
+ return label.toLowerCase().includes(keywords.toLowerCase())
+ })
})
})
}, [currentType, currentCategory, toolList, keywords, language])