fix: tools translate search (#12950)

Co-authored-by: lowell <lowell.hu@zkteco.in>
This commit is contained in:
Jhvcc 2025-01-22 19:27:02 +08:00 committed by GitHub
parent dd0904f95c
commit fd4afe09f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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