fix finding note paths of hidden notes, fixes #2262

This commit is contained in:
zadam
2021-10-24 14:37:41 +02:00
parent 6e0a65b59c
commit 33aa72eb97
5 changed files with 8 additions and 9 deletions

View File

@@ -611,7 +611,7 @@ class Note extends AbstractEntity {
// will sort the parents so that non-search & non-archived are first and archived at the end
// this is done so that non-search & non-archived paths are always explored as first when looking for note path
resortParents() {
sortParents() {
this.parentBranches.sort((a, b) =>
a.branchId.startsWith('virt-')
|| a.parentNote.hasInheritableOwnedArchivedLabel() ? 1 : -1);