fix null content when protecting notes, closes #3523

This commit is contained in:
zadam 2023-01-14 00:01:24 +01:00
parent 8eaef3e1d8
commit 2525857c20

View File

@ -286,8 +286,10 @@ function protectNote(note, protect) {
note.isProtected = protect;
if (content !== null) { // see https://github.com/zadam/trilium/issues/3523
// this will force de/encryption
note.setContent(content);
}
note.save();
}