Skip to content

Build your personal knowledge base with Trilium Notes

fix displaying protected notes outside of protected session

zadam8c0662ab821c
diff --git a/src/routes/api/tree.js b/src/routes/api/tree.js
index b9cb69b35c..fc8cf419d5 100644
--- a/src/routes/api/tree.js
+++ b/src/routes/api/tree.js
@@ -53,7 +53,7 @@ function getNotesAndBranchesAndAttributes(noteIds) {
notes.push({
noteId: note.noteId,
- title: note.title,
+ title: note.isDecrypted ? note.title : '[protected]',
isProtected: note.isProtected,
type: note.type,
mime: note.mime