mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
refactoring/cleanup
This commit is contained in:
@@ -70,7 +70,7 @@ async function enterProtectedSessionOnServer(password) {
|
||||
}
|
||||
|
||||
async function protectNoteAndSendToServer() {
|
||||
if (noteDetailService.getActiveNote().isProtected) {
|
||||
if (!noteDetailService.getActiveNote() || noteDetailService.getActiveNote().isProtected) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user