[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:
Sean Hatfield 2024-03-12 11:40:16 -07:00 committed by GitHub
parent 04399b1328
commit fd2b13017e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,8 +57,7 @@ export default function UploadFile({ workspace, fetchKeys, setLoading }) {
reason: file.errors[0].code,
};
});
setFiles([...files, ...newAccepted, ...newRejected]);
setFiles([...newAccepted, ...newRejected]);
};
useEffect(() => {