From 375dba3264751fe30cb33fd82f210c3d21c11f63 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 30 May 2023 23:54:11 +0200 Subject: [PATCH] fixed infinite recursion with search notes --- src/public/app/entities/fnote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.js index 6af816a44..eff96df81 100644 --- a/src/public/app/entities/fnote.js +++ b/src/public/app/entities/fnote.js @@ -392,7 +392,7 @@ class FNote { for (const parentNote of this.getParentNotes()) { if (parentNote.noteId === 'root') { return false; - } else if (parentNote.noteId === '_hidden') { + } else if (parentNote.noteId === '_hidden' || parentNote.type === 'search') { continue; }