From 482243b419735c8d9564c6ca138948e9e942d786 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 17 Apr 2025 20:36:51 +0300 Subject: [PATCH] fix(tree): note order sometimes incorrect (closes #1727) --- docs/Release Notes/Release Notes/v0.93.0.md | 1 + src/public/app/entities/fnote.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Release Notes/Release Notes/v0.93.0.md b/docs/Release Notes/Release Notes/v0.93.0.md index 092f1390a..68d22d5db 100644 --- a/docs/Release Notes/Release Notes/v0.93.0.md +++ b/docs/Release Notes/Release Notes/v0.93.0.md @@ -14,6 +14,7 @@ * [Calendar stops displaying notes after adding a Day Note](https://github.com/TriliumNext/Notes/issues/1705) * Full anonymization not redacting attachment titles. * 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 diff --git a/src/public/app/entities/fnote.ts b/src/public/app/entities/fnote.ts index 068636efa..3f09b4878 100644 --- a/src/public/app/entities/fnote.ts +++ b/src/public/app/entities/fnote.ts @@ -151,7 +151,7 @@ class FNote { for (const branchId of Object.values(this.childToBranch)) { const notePosition = this.froca.getBranch(branchId)?.notePosition; - if (notePosition) { + if (notePosition !== undefined) { branchIdPos[branchId] = notePosition; } }