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: tag title being its id
thecodrr48c59e60737f
diff --git a/packages/core/collections/tags.js b/packages/core/collections/tags.jsindex a80d12209..64e6a9509 100644--- a/packages/core/collections/tags.js+++ b/packages/core/collections/tags.js@@ -39,11 +39,12 @@ export default class Tags extends Collection {await this._collection.addItem(tag);}- async add(tagTitle, noteId) {- if (!tagTitle || !noteId) return;- const oldTag = this.all.find((t) => t.title === tagTitle) || {};+ async add(tagId, noteId) {+ if (!tagId || !noteId) return;+ let tag = this.all.find((t) => t.id === tagId || t.title === tagId) || {+ title: tagId,+ };- let tag = { ...oldTag, title: tagTitle };let id = tag.id || getId();let notes = tag.noteIds || [];