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
fix: mark notes without content as synced
thecodrr1fd1d8e258ee
diff --git a/packages/core/collections/trash.js b/packages/core/collections/trash.jsindex fc994bd45..019f63ea2 100644--- a/packages/core/collections/trash.js+++ b/packages/core/collections/trash.js@@ -133,7 +133,7 @@ export default class Trash {let [item] = this._getItem(id);if (item.itemType === "note") {const { contentId } = item;- return this._db.content.exists(contentId);+ return !contentId || this._db.content.exists(contentId);} else return true;}}diff --git a/packages/core/models/note.js b/packages/core/models/note.jsindex a8b158794..661d05abb 100644--- a/packages/core/models/note.js+++ b/packages/core/models/note.js@@ -180,7 +180,6 @@ export default class Note {}synced() {- const contentExists = this._db.content.exists(this.data.contentId);- return contentExists;+ return !this.data.contentId || this._db.content.exists(this.data.contentId);}}