mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 11:16:36 +00:00
FileDropzone: fix consecutive adds
This commit is contained in:
@@ -63,7 +63,7 @@ const FileDropzone: FC<FileDropzoneProps> = ({onFilesChanged}: FileDropzoneProps
|
||||
});
|
||||
}
|
||||
if (processedFiles.length === addedFiles.length) {
|
||||
setFiles(processedFiles);
|
||||
setFiles(files.concat(processedFiles));
|
||||
}
|
||||
};
|
||||
reader.readAsDataURL(file);
|
||||
|
||||
Reference in New Issue
Block a user