Skip to content

Build your personal knowledge base with Trilium Notes

fix FNote.isHiddenCompletely() which returned false for _hidden

zadam3d31742285ed
diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.js
index d73f14de2c..0fb4023df4 100644
--- a/src/public/app/entities/fnote.js
+++ b/src/public/app/entities/fnote.js
@@ -385,7 +385,9 @@ class FNote {
* @return boolean - true if there's no non-hidden path, note is not cloned to the visible tree
*/
isHiddenCompletely() {
- if (this.noteId === 'root') {
+ if (this.noteId === '_hidden') {
+ return true;
+ } else if (this.noteId === 'root') {
return false;
}