Skip to content

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

fix: tags & colors not being synced

thecodrr7372c4436dc4
diff --git a/packages/core/collections/tags.js b/packages/core/collections/tags.js
index 301563236..654184f0d 100644
--- a/packages/core/collections/tags.js
+++ b/packages/core/collections/tags.js
@@ -27,7 +27,7 @@ export default class Tags {
async merge(tag) {
if (!tag) return;
const oldTag = this.all.find(t => t.id === tag.id);
- if (!oldTag) return;
+ if (!oldTag) return await this._collection.addItem(tag);
const noteIds = set.union(oldTag.noteIds, tag.noteIds);
const dateEdited =
tag.dateEdited > oldTag.dateEdited ? tag.dateEdited : oldTag.dateEdited;