refactoring/cleanup

This commit is contained in:
zadam
2019-05-21 20:24:40 +02:00
parent ff5ea8b311
commit 3fe9218ea8
8 changed files with 47 additions and 63 deletions

View File

@@ -70,7 +70,7 @@ async function enterProtectedSessionOnServer(password) {
}
async function protectNoteAndSendToServer() {
if (noteDetailService.getActiveNote().isProtected) {
if (!noteDetailService.getActiveNote() || noteDetailService.getActiveNote().isProtected) {
return;
}