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: export with empty content if no content found
Abdullah Atta1fb43b7dfe12
diff --git a/packages/core/models/note.js b/packages/core/models/note.jsindex 7d33bcb12..85471b7b2 100644--- a/packages/core/models/note.js+++ b/packages/core/models/note.js@@ -30,7 +30,7 @@ export default class Note {/**** @param {import('../api').default} db- * @param {Object} note+ * @param {any} note*/constructor(note, db) {this._note = note;@@ -97,9 +97,11 @@ export default class Note {createdOn: formatDate(this.data.dateCreated),tags: this.tags.join(", ")};- contentItem =- contentItem || (await this._db.content.raw(this._note.contentId));- if (!contentItem) return false;+ contentItem = contentItem ||+ (await this._db.content.raw(this._note.contentId)) || {+ type: "tiptap",+ data: "<p></p>"+ };const { data, type } = await this._db.content.downloadMedia(`export-${this.id}`,contentItem,