code should not rely on fixed branch IDs since they can change after move

This commit is contained in:
zadam
2022-12-23 20:40:58 +01:00
parent e5e0add1a2
commit 5c4db266a4
11 changed files with 29 additions and 35 deletions

View File

@@ -187,7 +187,7 @@ function sortNotes(parentNoteId, customSortBy = 'title', reverse = false, folder
for (const note of notes) {
const branch = note.getParentBranches().find(b => b.parentNoteId === parentNoteId);
if (branch.branchId === '_hidden') {
if (branch.noteId === '_hidden') {
position = 999_999_999;
}