mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 03:29:01 +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
|
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] ? ', ' : '、 ')
|
||||||
})()
|
})()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user