mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-13 02:00:10 +01:00
[FEAT] On file upload, clear dropzone box of previously uploaded files (#894)
on file upload, clear uploader box from previously uploaded files
This commit is contained in:
parent
04399b1328
commit
fd2b13017e
@ -57,8 +57,7 @@ export default function UploadFile({ workspace, fetchKeys, setLoading }) {
|
||||
reason: file.errors[0].code,
|
||||
};
|
||||
});
|
||||
|
||||
setFiles([...files, ...newAccepted, ...newRejected]);
|
||||
setFiles([...newAccepted, ...newRejected]);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user