mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
code should not rely on fixed branch IDs since they can change after move
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user