mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
core: fix cannot read property title of undefined
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user