mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix restore items from trash
This commit is contained in:
@@ -143,9 +143,9 @@ export const SelectionHeader = () => {
|
|||||||
selectedItemsList.forEach((item) => {
|
selectedItemsList.forEach((item) => {
|
||||||
noteIds.push(item.id);
|
noteIds.push(item.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
await db.trash.restore(...noteIds);
|
await db.trash.restore(...noteIds);
|
||||||
|
dispatch({type: Actions.NOTEBOOKS});
|
||||||
|
dispatch({type: Actions.NOTES});
|
||||||
dispatch({type: Actions.TRASH});
|
dispatch({type: Actions.TRASH});
|
||||||
dispatch({type: Actions.SELECTION_MODE, enabled: false});
|
dispatch({type: Actions.SELECTION_MODE, enabled: false});
|
||||||
dispatch({type: Actions.CLEAR_SELECTION});
|
dispatch({type: Actions.CLEAR_SELECTION});
|
||||||
|
|||||||
Reference in New Issue
Block a user