mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
yet another refactoring of working with note's payload/content
This commit is contained in:
@@ -117,10 +117,7 @@ async function saveNote() {
|
||||
}
|
||||
|
||||
note.title = $noteTitle.val();
|
||||
|
||||
if (note.noteContent != null) { // might be null for file/image
|
||||
note.noteContent.content = getActiveNoteContent(note);
|
||||
}
|
||||
note.content = getActiveNoteContent(note);
|
||||
|
||||
// it's important to set the flag back to false immediatelly after retrieving title and content
|
||||
// otherwise we might overwrite another change (especially async code)
|
||||
|
||||
Reference in New Issue
Block a user