Skip to content

Commit

Permalink
fix(web): wait for all delete files promise settled (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal committed Jan 5, 2024
1 parent f1e7297 commit 44df222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/pages/app/storages/mods/FileList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function FileList() {
"orange",
);
let cnt = 0;
await Promise.all(
await Promise.allSettled(
selectedFiles.map((v) => deleteFile(bucketName!, v).then(() => cnt++)),
).finally(() => {
refetch();
Expand Down

0 comments on commit 44df222

Please sign in to comment.