mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix duplication of hoisted note tree when hoisted note has clones
This commit is contained in:
parent
bf0fbe201e
commit
060d4fc27b
@ -1210,7 +1210,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
this.tree.clearFilter();
|
this.tree.clearFilter();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let found = false;
|
let found = false;console.log(this.tabContext.notePath, this.tabContext.hoistedNoteId, "ZZZ");
|
||||||
|
|
||||||
// hack when hoisted note is cloned then it could be filtered multiple times while we want only 1
|
// hack when hoisted note is cloned then it could be filtered multiple times while we want only 1
|
||||||
this.tree.filterBranches(node => {
|
this.tree.filterBranches(node => {
|
||||||
@ -1218,7 +1218,9 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return found = (node.data.noteId === this.tabContext.hoistedNoteId);
|
found = node.data.noteId === this.tabContext.hoistedNoteId;
|
||||||
|
|
||||||
|
return found;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user