mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: Resolved the issue of duplicate display of supported file types during text file upload (#2241)
Co-authored-by: hbc <hbc@hbc-iMac.local>
This commit is contained in:
parent
8cb62ef31a
commit
d8f8afcbd0
|
@ -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…
Reference in New Issue
Block a user