mirror of
https://github.com/zadam/trilium.git
synced 2025-12-27 02:30:03 +01:00
fix error when saving unprotected notes
This commit is contained in:
@@ -166,7 +166,7 @@ async function updateNote(noteId, newNote, ctx) {
|
||||
await sync_table.addNoteHistorySync(newNoteHistoryId);
|
||||
}
|
||||
|
||||
await protectNoteHistory(noteId, ctx.getDataKey(), newNote.detail.is_protected);
|
||||
await protectNoteHistory(noteId, ctx.getDataKeyOrNull(), newNote.detail.is_protected);
|
||||
|
||||
await addNoteAudits(origNoteDetail, newNote.detail, ctx.browserId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user