Skip to content

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

fix: menu pins not updated when tag is removed

thecodrr400c6949815e
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 2b08f45fe..404a6baea 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -201,6 +201,7 @@ class EditorStore extends BaseStore {
};
async _setTag(value) {
+ if (!value) return;
const { tags, id } = this.get().session;
let note = db.notes.note(id);
@@ -209,6 +210,7 @@ class EditorStore extends BaseStore {
let index = tags.indexOf(value);
if (index > -1) {
await note.untag(value);
+ appStore.refreshMenuPins();
} else {
await note.tag(value);
}
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index ffeb3a154..ef242a372 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -9000,8 +9000,8 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==
"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":
- version "5.3.2"
- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#2a7d72a28febb6ccd055ec6622022d3d7c165e23"
+ version "5.4.0"
+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#0d321c4b251ec17beadfb6dc465987e5cb70fd0d"
dependencies:
fast-sort "^2.0.1"
fuzzysearch "^1.0.3"