filtering out initial <p>&nbsp;</p> which is ugly when switching to code

This commit is contained in:
azivner 2018-01-23 23:01:30 -05:00
parent 4ed2dc9f53
commit f3ccf85285

View file

@ -209,6 +209,10 @@ async function saveNoteImages(noteId, noteText, sourceId) {
}
async function updateNote(noteId, newNote, dataKey, sourceId) {
if (newNote.detail.note_text === '<p>&nbsp;</p>') {
newNote.detail.note_text = '';
}
if (newNote.detail.is_protected) {
await encryptNote(newNote, dataKey);
}