Skip to content

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

fix: old color on note gets deleted on sync merge

thecodrrdf9ba3548a54
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 0ec8b5821..a5d163761 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -19,11 +19,11 @@ export default class Notes extends Collection {
let oldNote = this._collection.getItem(id);
if (noteArg.remote || noteArg.migrated) {
- const { color, tags, notebooks } = noteArg;
+ const { color, tags } = noteArg;
if (oldNote) {
if (!!oldNote.color && oldNote.color !== color) {
- await this._db.colors.remove(oldNote.color, id);
+ await this._db.colors.untag(oldNote.color, id);
}
if (!!oldNote.tags) {
for (let tag of oldNote.tags) {