From ada43adc654aafc294498a608e7ab466d780dffd Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Sun, 4 Nov 2018 11:50:17 +0800 Subject: [PATCH] :bug: fix uploadList thumbUrl image type check --- components/upload/UploadList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/upload/UploadList.tsx b/components/upload/UploadList.tsx index 73122a5aa9..844ed48e02 100644 --- a/components/upload/UploadList.tsx +++ b/components/upload/UploadList.tsx @@ -76,7 +76,8 @@ export default class UploadList extends React.Component { 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 */