search fixes

This commit is contained in:
zadam
2021-01-25 23:43:36 +01:00
parent ec351137d4
commit 8b0a1e546d
4 changed files with 33 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ function getSomeNotePath(note) {
while (cur.noteId !== 'root') {
path.push(cur.noteId);
const parents = cur.getParentNotes();
const parents = cur.getParentNotes().filter(note => note.type !== 'search');
if (!parents.length) {
logError(`Can't find parents for note ${cur.noteId}`);