diff --git a/services/notes.js b/services/notes.js index 40fb5eb63..0a0f90bb0 100644 --- a/services/notes.js +++ b/services/notes.js @@ -209,6 +209,10 @@ async function saveNoteImages(noteId, noteText, sourceId) { } async function updateNote(noteId, newNote, dataKey, sourceId) { + if (newNote.detail.note_text === '

 

') { + newNote.detail.note_text = ''; + } + if (newNote.detail.is_protected) { await encryptNote(newNote, dataKey); }