Skip to content

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

fix: opened note not pinning (#145)

thecodrr15d3e7f92386
diff --git a/apps/web/src/stores/note-store.js b/apps/web/src/stores/note-store.js
index 6bc7552c5..a78cff915 100644
--- a/apps/web/src/stores/note-store.js
+++ b/apps/web/src/stores/note-store.js
@@ -64,7 +64,7 @@ class NoteStore extends BaseStore {
pin = async (note) => {
await db.notes.note(note).pin();
this.refresh();
- this._syncEditor(note.id, "pinned");
+ this._syncEditor(note.id, "pinned", !note.pinned);
};
favorite = async (note) => {