mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 10:09:26 +02:00
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 <msts.oo0131@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c9c4936d9e
commit
725df6f6f7
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user