From 3d31742285edb93452e42437eb2d0ab40abd12a6 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 15 Jul 2023 09:50:07 +0200 Subject: [PATCH] fix FNote.isHiddenCompletely() which returned false for _hidden --- src/public/app/entities/fnote.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.js index d73f14de2..0fb4023df 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; }