A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: You cannot pin more than 3 notes on unpin
thecodrr28d73f4c322a
diff --git a/apps/web/src/stores/note-store.js b/apps/web/src/stores/note-store.jsindex 335482144..34f7f5039 100644--- a/apps/web/src/stores/note-store.js+++ b/apps/web/src/stores/note-store.js@@ -61,11 +61,11 @@ class NoteStore extends BaseStore {pin = async (id) => {// TODO (hack) we probably shouldn't do this here.- if (db.notes.pinned.length >= 3) {+ const note = db.notes.note(id);+ if (!note.data.pinned && db.notes.pinned.length >= 3) {await showToast("error", "You cannot pin more than 3 notes.");return;}- const note = db.notes.note(id);if (!this._syncEditor(note.id, "pinned", !note.data.pinned)) {await note.pin();this.refresh();