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: do not save empty notes
thecodrrc81a3e9a221f
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.jsindex 0ab0688ef..b981f250e 100644--- a/apps/web/src/components/editor/index.js+++ b/apps/web/src/components/editor/index.js@@ -41,11 +41,13 @@ const modules = {let timestamp = undefined;let title = undefined;async function saveNote(quill) {+ let content = {+ delta: quill.getContents(),+ text: quill.getText()+ };+ if (!content.delta || content.text.len <= 1) return;let note = {- content: {- delta: quill.getContents(),- text: quill.getText()- },+ content,title,dateCreated: timestamp};