From fd4afe09f877255d672ab20113471e52acc73fe1 Mon Sep 17 00:00:00 2001 From: Jhvcc <37662342+Jhvcc@users.noreply.github.com> Date: Wed, 22 Jan 2025 19:27:02 +0800 Subject: [PATCH] fix: tools translate search (#12950) Co-authored-by: lowell --- web/app/components/tools/provider-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/tools/provider-list.tsx b/web/app/components/tools/provider-list.tsx index 6f17835589..73c7363641 100644 --- a/web/app/components/tools/provider-list.tsx +++ b/web/app/components/tools/provider-list.tsx @@ -46,7 +46,7 @@ const ProviderList = () => { if (tagFilterValue.length > 0 && (!collection.labels || collection.labels.every(label => !tagFilterValue.includes(label)))) return false if (keywords) - return collection.name.toLowerCase().includes(keywords.toLowerCase()) + return Object.values(collection.label).some(value => value.toLowerCase().includes(keywords.toLowerCase())) return true }) }, [activeTab, tagFilterValue, keywords, collectionList])