Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
clarified comment
zadamdf0f52aff93b
diff --git a/src/services/notes.js b/src/services/notes.jsindex 48ae814cfc..1380616ae0 100644--- a/src/services/notes.js+++ b/src/services/notes.js@@ -286,7 +286,9 @@ function protectNote(note, protect) {note.isProtected = protect;- if (content !== null) { // see https://github.com/zadam/trilium/issues/3523+ // see https://github.com/zadam/trilium/issues/3523+ // IIRC a zero-sized buffer can be returned as null from the database+ if (content !== null) {// this will force de/encryptionnote.setContent(content);}