fix deleteFromTrash deleteBatch not intiialised
This commit is contained in:
parent
9055f67ff4
commit
8df9ebd44a
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue