From b3d5938665d5e05a5b05aded0887921a67ef7019 Mon Sep 17 00:00:00 2001 From: baiyongjie <407221377@qq.com> Date: Tue, 23 May 2023 09:30:55 +0800 Subject: [PATCH] fix search --- 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 ad442e999..6af816a44 100644 --- a/src/public/app/entities/fnote.js +++ b/src/public/app/entities/fnote.js @@ -314,7 +314,7 @@ class FNote { return [['root']]; } - const parentNotes = this.getParentNotes(); + const parentNotes = this.getParentNotes().filter(note => note.type !== 'search'); let notePaths = []; if (parentNotes.length === 1) { // optimization for most common case