fix: plugin manager keywords (#3809)

This commit is contained in:
katherinehhh 2024-03-25 09:51:57 +08:00 committed by GitHub
parent 0dc0d329f8
commit 66229cc92b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@ const LocalPlugins = () => {
const keyWordsfilterList = useMemo(() => {
const list = keyWordlists.map((i) => {
if (i === 'Others') {
const result = data?.data.filter((v) => !v.keywords);
const result = data?.data.filter((v) => !v.keywords || !v.keywords.every((k) => keyWordlists.includes(k)));
return {
key: i,
list: result,