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: duplicate calls to colors.add on note color
thecodrr94f27f85a9f9
diff --git a/packages/core/models/note.js b/packages/core/models/note.jsindex 661d05abb..f147bde50 100644--- a/packages/core/models/note.js+++ b/packages/core/models/note.js@@ -123,11 +123,11 @@ export default class Note {async color(color) {if (!(await checkIsUserPremium(CHECK_IDS.noteColor))) return;- await this.uncolor();- let tag = await this._db.colors.add(color, this._note.id);+ if (this._note.color)+ await this._db.colors.untag(this._note.color, this._note.id);await this._db.notes.add({id: this.id,- color: tag.title,+ color,});}