Skip to content

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

fix: this.db.colors.raw is not a function

thecodrr38d5012c887a
diff --git a/packages/core/collections/tags.js b/packages/core/collections/tags.js
index 0de60cb01..301563236 100644
--- a/packages/core/collections/tags.js
+++ b/packages/core/collections/tags.js
@@ -18,6 +18,12 @@ export default class Tags {
return tagItem.noteIds;
}
+ raw(id) {
+ const tagItem = this.all.find(t => t.id === id);
+ if (!tagItem) return;
+ return tagItem;
+ }
+
async merge(tag) {
if (!tag) return;
const oldTag = this.all.find(t => t.id === tag.id);