Sfoglia il codice sorgente

fix: fe tool filter missing different languages handling (#5558)

tags/0.6.12
Yeuoly 1 anno fa
parent
commit
0c352eef2d
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      web/app/components/tools/add-tool-modal/index.tsx

+ 3
- 1
web/app/components/tools/add-tool-modal/index.tsx Vedi File

@@ -83,7 +83,9 @@ const AddToolModal: FC<Props> = ({
return toolWithProvider.labels.includes(currentCategory)
}).filter((toolWithProvider) => {
return toolWithProvider.tools.some((tool) => {
return tool.label[language].toLowerCase().includes(keywords.toLowerCase())
return Object.values(tool.label).some((label) => {
return label.toLowerCase().includes(keywords.toLowerCase())
})
})
})
}, [currentType, currentCategory, toolList, keywords, language])

Loading…
Annulla
Salva