mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-13 08:19:48 -06: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