mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
fix a bug where render note content could be set to null during renaming
This commit is contained in:
@@ -370,7 +370,7 @@ async function updateNote(noteId, noteUpdates) {
|
||||
note.isProtected = noteUpdates.isProtected;
|
||||
await note.save();
|
||||
|
||||
if (!['file', 'image'].includes(note.type)) {
|
||||
if (!['file', 'image', 'render'].includes(note.type)) {
|
||||
noteUpdates.content = await saveLinks(note, noteUpdates.content);
|
||||
|
||||
await note.setContent(noteUpdates.content);
|
||||
|
||||
Reference in New Issue
Block a user