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: merge old & new note on update
thecodrr3a9746ab541a
diff --git a/packages/core/api/database.js b/packages/core/api/database.jsindex fcc1f4b29..c1d19f70b 100644--- a/packages/core/api/database.js+++ b/packages/core/api/database.js@@ -114,8 +114,8 @@ class Database {(!note.content || !note.content.text || !note.content.delta)))return;-let timestamp = note.dateCreated || Date.now();+ note = { ...this.notes[timestamp], ...note };//add or update a note into the databaselet title =note.title ||