fix not being able to rename a note when in auto-book mode, closes #694

This commit is contained in:
zadam
2019-11-07 23:25:58 +01:00
parent 05547845cb
commit d58e98e361
2 changed files with 5 additions and 1 deletions

View File

@@ -370,6 +370,7 @@ async function updateNote(noteId, noteUpdates) {
note.isProtected = noteUpdates.isProtected;
await note.save();
// this might be simplified to just !== undefined
if (!['file', 'image', 'render'].includes(note.type)) {
noteUpdates.content = await saveLinks(note, noteUpdates.content);