mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
🐛 fix uploadList thumbUrl image type check
This commit is contained in:
parent
9e58bacc6e
commit
ada43adc65
@ -76,7 +76,8 @@ export default class UploadList extends React.Component<UploadListProps, any> {
|
||||
typeof window === 'undefined' ||
|
||||
!(window as any).FileReader || !(window as any).File ||
|
||||
!(file.originFileObj instanceof File) ||
|
||||
file.thumbUrl !== undefined) {
|
||||
file.thumbUrl !== undefined ||
|
||||
!imageTypes.includes(file.type)) {
|
||||
return;
|
||||
}
|
||||
/*eslint-disable */
|
||||
|
Loading…
Reference in New Issue
Block a user