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: Pinned notebook does not move to the top (#61)
thecodrr3ce01b100612
diff --git a/apps/web/src/stores/notebook-store.js b/apps/web/src/stores/notebook-store.jsindex 373e46d39..24a52ab43 100644--- a/apps/web/src/stores/notebook-store.js+++ b/apps/web/src/stores/notebook-store.js@@ -26,9 +26,7 @@ function notebookStore(set, get) {update: function() {},pin: async function(notebook, index) {await db.notebooks.notebook(notebook).pin();- set(state => {- state.notebooks[index].pinned = !notebook.pinned;- });+ get().refresh();}};}diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex eb10a93c6..983ed2765 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -6825,7 +6825,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:"notes-core@https://github.com/thecodrr/notes-core.git":version "1.2.0"- resolved "https://github.com/thecodrr/notes-core.git#8b2ec867e62b88bc3316202ecd3122e59c814ba2"+ resolved "https://github.com/thecodrr/notes-core.git#f88c06d4bcdcff876cb8f12391e501a2e03ed8e0"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"