fix deleteFromTrash deleteBatch not intiialised

This commit is contained in:
Abhinav 2022-09-17 13:47:55 +05:30
parent 9055f67ff4
commit 8df9ebd44a

View file

@ -205,7 +205,7 @@ export const deleteFromTrash = async (filesToDelete: number[]) => {
if (!token) {
return;
}
let deleteBatch: number[];
let deleteBatch: number[] = [];
for (const fileID of filesToDelete) {
deleteBatch.push(fileID);
if (deleteBatch.length >= MAX_TRASH_BATCH_SIZE) {