fix(tree): note order sometimes incorrect (closes #1727)

This commit is contained in:
Elian Doran 2025-04-17 20:36:51 +03:00
parent 722abb14de
commit 482243b419
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
* [Calendar stops displaying notes after adding a Day Note](https://github.com/TriliumNext/Notes/issues/1705) * [Calendar stops displaying notes after adding a Day Note](https://github.com/TriliumNext/Notes/issues/1705)
* Full anonymization not redacting attachment titles. * Full anonymization not redacting attachment titles.
* Unable to trigger "Move to" dialog via keyboard shortcut. * Unable to trigger "Move to" dialog via keyboard shortcut.
* [Note ordering doesn't load correctly, only shows up right after moving a note](https://github.com/TriliumNext/Notes/issues/1727)
## ✨ Improvements ## ✨ Improvements

View File

@ -151,7 +151,7 @@ class FNote {
for (const branchId of Object.values(this.childToBranch)) { for (const branchId of Object.values(this.childToBranch)) {
const notePosition = this.froca.getBranch(branchId)?.notePosition; const notePosition = this.froca.getBranch(branchId)?.notePosition;
if (notePosition) { if (notePosition !== undefined) {
branchIdPos[branchId] = notePosition; branchIdPos[branchId] = notePosition;
} }
} }