fix restore items from trash

This commit is contained in:
ammarahm-ed
2020-12-16 11:40:51 +05:00
parent 8d5f20827c
commit 5745da65c0

View File

@@ -143,9 +143,9 @@ export const SelectionHeader = () => {
selectedItemsList.forEach((item) => {
noteIds.push(item.id);
});
await db.trash.restore(...noteIds);
dispatch({type: Actions.NOTEBOOKS});
dispatch({type: Actions.NOTES});
dispatch({type: Actions.TRASH});
dispatch({type: Actions.SELECTION_MODE, enabled: false});
dispatch({type: Actions.CLEAR_SELECTION});