Merge branch 'stable'

This commit is contained in:
zadam 2019-11-08 19:11:18 +01:00
commit 3149dff880
2 changed files with 5 additions and 1 deletions

View File

@ -270,7 +270,10 @@ class NoteDetailBook {
return type;
}
getContent() {}
getContent() {
// for auto-book cases when renaming title there should be content
return "";
}
show() {
this.$component.show();

View File

@ -373,6 +373,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);