fix: tools translate search (#12950)

Co-authored-by: lowell <lowell.hu@zkteco.in>
pull/12574/head^2
Jhvcc 1 year ago committed by GitHub
parent dd0904f95c
commit fd4afe09f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -46,7 +46,7 @@ const ProviderList = () => {
if (tagFilterValue.length > 0 && (!collection.labels || collection.labels.every(label => !tagFilterValue.includes(label)))) if (tagFilterValue.length > 0 && (!collection.labels || collection.labels.every(label => !tagFilterValue.includes(label))))
return false return false
if (keywords) if (keywords)
return collection.name.toLowerCase().includes(keywords.toLowerCase()) return Object.values(collection.label).some(value => value.toLowerCase().includes(keywords.toLowerCase()))
return true return true
}) })
}, [activeTab, tagFilterValue, keywords, collectionList]) }, [activeTab, tagFilterValue, keywords, collectionList])

Loading…
Cancel
Save