mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:36:52 +00:00
fix: attachment field set as single and doesn't display re-uploaded attachments after deleted (#3469)
This commit is contained in:
parent
5fa430585c
commit
89bf75871f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user