fix search

This commit is contained in:
baiyongjie 2023-05-23 09:30:55 +08:00
parent 0728f540ab
commit b3d5938665

View file

@ -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