Skip to content

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

fix: use color title for color ref in note (fixes streetwriters/notesnook#529)

thecodrrdcb130039412
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 95743ec69..1453fe85c 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -270,7 +270,8 @@ export default class Notes extends Collection {
const { color, tags, id } = note;
if (color) {
- await this._db.colors.add(color, id);
+ const { title } = await this._db.colors.add(color, id);
+ note.color = title;
}
if (tags && tags.length) {