This commit is contained in:
Abhinav 2022-09-01 16:47:49 +05:30
parent 5e0bcb0a79
commit 3bbdc58920
2 changed files with 5 additions and 4 deletions

View file

@ -343,11 +343,12 @@ export default function Uploader(props: Props) {
const retryFailed = async () => {
try {
const resp = await uploadManager.getFailedFilesWithCollection();
const filesWithCollections =
await uploadManager.getFailedFilesWithCollections();
await preUploadAction();
await uploadManager.queueFilesForUpload(
resp.files,
resp.collections
filesWithCollections.files,
filesWithCollections.collections
);
} catch (err) {
showUserFacingError(err.message);

View file

@ -422,7 +422,7 @@ class UploadManager {
}
}
async getFailedFilesWithCollection() {
async getFailedFilesWithCollections() {
return {
files: this.failedFiles,
collections: [...this.collections.values()],