mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
fix null content when protecting notes, closes #3523
This commit is contained in:
parent
8eaef3e1d8
commit
2525857c20
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user