From 89bf75871f9f33533f8abea25680dbe94a69687b Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Wed, 31 Jan 2024 09:08:35 +0800 Subject: [PATCH] fix: attachment field set as single and doesn't display re-uploaded attachments after deleted (#3469) --- packages/core/client/src/schema-component/antd/upload/Upload.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/client/src/schema-component/antd/upload/Upload.tsx b/packages/core/client/src/schema-component/antd/upload/Upload.tsx index 8975c536b8..4bfc3eb0cd 100644 --- a/packages/core/client/src/schema-component/antd/upload/Upload.tsx +++ b/packages/core/client/src/schema-component/antd/upload/Upload.tsx @@ -124,6 +124,7 @@ Upload.Attachment = connect((props: UploadProps) => { setFileList((prevFileList) => { if (!multiple) { onChange?.(null as any); + setSync(true); return []; } const index = prevFileList.indexOf(file);