FIXME comment on virtual branches

This commit is contained in:
zadam
2022-09-24 23:03:38 +02:00
parent e3b2bbdca5
commit a9c0daa51a
3 changed files with 448 additions and 432 deletions

View File

@@ -698,7 +698,7 @@ class Note extends AbstractEntity {
// this is done so that non-search & non-archived paths are always explored as first when looking for note path
sortParents() {
this.parentBranches.sort((a, b) =>
a.branchId.startsWith('virt-')
a.branchId.startsWith('virt-') // FIXME: search virtual notes appear only in froca so this is probably not necessary
|| a.parentNote?.hasInheritableOwnedArchivedLabel() ? 1 : -1);
this.parents = this.parentBranches