diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js index e3690ff51..2f6445c9c 100644 --- a/packages/core/collections/notes.js +++ b/packages/core/collections/notes.js @@ -264,8 +264,8 @@ export default class Notes extends Collection { const { color, tags, id } = note; if (color) { - const { title } = await this._db.colors.add(color, id); - note.color = title; + const addedColor = await this._db.colors.add(color, id); + if (addedColor) note.color = addedColor.title; } if (tags && tags.length) {