소스 검색

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

tags/0.6.12
Yeuoly 1 년 전
부모
커밋
0c352eef2d
No account linked to committer's email address
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      web/app/components/tools/add-tool-modal/index.tsx

+ 3
- 1
web/app/components/tools/add-tool-modal/index.tsx 파일 보기

@@ -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…
취소
저장