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: uncolor note before coloring
thecodrrf20f2166f173
diff --git a/packages/core/models/note.js b/packages/core/models/note.jsindex c462dd3b7..2b1056d11 100644--- a/packages/core/models/note.js+++ b/packages/core/models/note.js@@ -85,6 +85,7 @@ export default class Note {async color(color) {if (!(await sendCheckUserStatusEvent(CHECK_IDS.noteColor))) return;+ await this.uncolor();await this._db.colors.add(color, this._note.id);await this._db.notes._collection.addItem({ ...this._note, color });}