Skip to content

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

web: remove limit on no. of pins

Abdullah Atta53ce66f4a6f3
diff --git a/apps/web/src/stores/note-store.js b/apps/web/src/stores/note-store.js
index 011b50e2d..937818b0e 100644
--- a/apps/web/src/stores/note-store.js
+++ b/apps/web/src/stores/note-store.js
@@ -108,9 +108,6 @@ class NoteStore extends BaseStore {
pin = async (id) => {
const note = db.notes.note(id);
- if (!note.data.pinned && db.notes.pinned.length >= 3) {
- throw new Error("You cannot pin more than 3 notes.");
- }
await note.pin();
this._syncEditor(note.id, "pinned", !note.data.pinned);
this.refresh();
diff --git a/apps/web/src/stores/notebook-store.js b/apps/web/src/stores/notebook-store.js
index f043c9cd0..f776c29ca 100644
--- a/apps/web/src/stores/notebook-store.js
+++ b/apps/web/src/stores/notebook-store.js
@@ -55,9 +55,6 @@ class NotebookStore extends BaseStore {
pin = async (notebookId) => {
const notebook = db.notebooks.notebook(notebookId);
- if (!notebook._notebook.pinned && db.notebooks.pinned.length >= 3) {
- throw new Error("You cannot pin more than 3 notebooks.");
- }
await notebook.pin();
this.refresh();
};