From 725df6f6f7faf97d8108639381875d9c45cc7ea8 Mon Sep 17 00:00:00 2001 From: Masatoshi Ogiwara Date: Thu, 27 Aug 2026 13:03:58 +0900 Subject: [PATCH] web: fix duplicate task id in deleteItemsFromTrash (#10286) deleteItemsFromTrash reused the "restoreItems" task id from restoreItemsFromTrash (copy-paste), so a permanent-delete and a restore running close together shared the same status entry: the one that finished first cleared the other's progress indicator, and the displayed status text could reflect the wrong operation. Give the delete task its own "deleteItems" id. Signed-off-by: zigzagdev --- apps/web/src/common/multi-select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/common/multi-select.ts b/apps/web/src/common/multi-select.ts index 9f23608a7..608dd278f 100644 --- a/apps/web/src/common/multi-select.ts +++ b/apps/web/src/common/multi-select.ts @@ -214,7 +214,7 @@ async function deleteItemsFromTrash(ids: string[]) { await TaskManager.startTask({ type: "status", - id: "restoreItems", + id: "deleteItems", title: strings.inProgressActions.permanentlyDeleting.item(ids.length), action: async (report) => { report({