Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix restore

ammarahm-edca49b14b1a79
diff --git a/apps/mobile/src/utils/functions.js b/apps/mobile/src/utils/functions.js
index e28552d69..fdf2f6417 100644
--- a/apps/mobile/src/utils/functions.js
+++ b/apps/mobile/src/utils/functions.js
@@ -60,7 +60,7 @@ export const deleteItems = async (item) => {
let trashItem = trash.all.find((item) => item.itemId === it.id);
ids.push(trashItem.id);
}
- await db.trash.restore(ids);
+ await db.trash.restore(...ids);
updateEvent({type: Actions.NOTEBOOKS});
updateEvent({type: Actions.NOTES});
updateEvent({type: Actions.TRASH});