From f3ccf852858b42b3423f11a5d4d08bb00ab78b08 Mon Sep 17 00:00:00 2001 From: azivner Date: Tue, 23 Jan 2018 23:01:30 -0500 Subject: [PATCH] filtering out initial

 

which is ugly when switching to code --- services/notes.js | 4 ++++ 1 file changed, 4 insertions(+) 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); }