diff --git a/web/app/components/datasets/create/file-uploader/index.tsx b/web/app/components/datasets/create/file-uploader/index.tsx index 4e02a1fb92..3b8146a5d9 100644 --- a/web/app/components/datasets/create/file-uploader/index.tsx +++ b/web/app/components/datasets/create/file-uploader/index.tsx @@ -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] ? ', ' : '、 ') })()