Przeglądaj źródła

fix: tools translate search (#12950)

Co-authored-by: lowell <lowell.hu@zkteco.in>
Jhvcc 3 miesięcy temu
rodzic
commit
fd4afe09f8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      web/app/components/tools/provider-list.tsx

+ 1 - 1
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])