Unverified Commit d8f8afcb authored by Moonlit's avatar Moonlit Committed by GitHub

fix: Resolved the issue of duplicate display of supported file types during...

fix: Resolved the issue of duplicate display of supported file types during text file upload (#2241)
Co-authored-by: 's avatarhbc <hbc@hbc-iMac.local>
parent 8cb62ef3
...@@ -72,6 +72,8 @@ const FileUploader = ({ ...@@ -72,6 +72,8 @@ const FileUploader = ({
return item 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] ? ', ' : '、 ') return res.map(item => item.toUpperCase()).join(language !== LanguagesSupportedUnderscore[1] ? ', ' : '、 ')
})() })()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment