Skip to content

Commit

Permalink
fix: Resolved the issue of duplicate display of supported file types …
Browse files Browse the repository at this point in the history
…during text file upload (langgenius#2241)

Co-authored-by: hbc <[email protected]>
  • Loading branch information
huangbaichao and hbc authored Jan 26, 2024
1 parent 8cb62ef commit d8f8afc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/app/components/datasets/create/file-uploader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ const FileUploader = ({

return item
})
res = res.map(item => item.toLowerCase())
res = res.filter((item, index, self) => self.indexOf(item) === index)

return res.map(item => item.toUpperCase()).join(language !== LanguagesSupportedUnderscore[1] ? ', ' : '、 ')
})()
Expand Down

0 comments on commit d8f8afc

Please sign in to comment.