chore: more filter text content

This commit is contained in:
Joel 2024-11-13 15:12:58 +08:00
parent 89b470d0d5
commit 5c98d80fdf

View File

@ -64,7 +64,7 @@ const AllTools = ({
return mergedTools.filter((toolWithProvider) => {
return toolWithProvider.tools.some((tool) => {
return tool.label[language].toLowerCase().includes(searchText.toLowerCase())
return tool.label[language].toLowerCase().includes(searchText.toLowerCase()) || tool.name.toLowerCase().includes(searchText.toLowerCase())
})
})
}, [activeTab, buildInTools, customTools, workflowTools, searchText, language, hasFilter])