A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: fix `cannot read property title of undefined`
Abdullah Atta6bf14512f9fe
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.jsindex 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) {