Skip to content

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

fix unpin note

ammarahm-ed1de5ca0aca13
diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.js
index f03bbe769..9f66dc168 100644
--- a/apps/mobile/src/components/SelectionWrapper/index.js
+++ b/apps/mobile/src/components/SelectionWrapper/index.js
@@ -40,11 +40,11 @@ const SelectionWrapper = ({
let func = async () => {
if (!item.id) return;
if (item.type === 'note') {
- await db.notes.note(note.id).pin();
+ await db.notes.note(item.id).pin();
dispatch({type: ACTIONS.PINNED});
dispatch({type: ACTIONS.NOTES});
} else {
- await db.notebooks.notebook(note.id).pin();
+ await db.notebooks.notebook(item.id).pin();
dispatch({type: ACTIONS.PINNED});
dispatch({type: ACTIONS.NOTEBOOKS});
}