Browse Source

fix: Resolved the issue of duplicate display of supported file types during text file upload (#2241)

Co-authored-by: hbc <hbc@hbc-iMac.local>
tags/0.5.3
Moonlit 1 year ago
parent
commit
d8f8afcbd0
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      web/app/components/datasets/create/file-uploader/index.tsx

+ 2
- 0
web/app/components/datasets/create/file-uploader/index.tsx View File

@@ -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] ? ', ' : '、 ')
})()

Loading…
Cancel
Save