mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue