From 7efc36efefe00af1412aff2a583a581fbf162d6a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 10 Apr 2026 11:35:32 +0300 Subject: [PATCH] fix(collections): not reacting to changes in reordering --- apps/client/src/widgets/collections/NoteList.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/client/src/widgets/collections/NoteList.tsx b/apps/client/src/widgets/collections/NoteList.tsx index 0c37c4a08a..038d90a052 100644 --- a/apps/client/src/widgets/collections/NoteList.tsx +++ b/apps/client/src/widgets/collections/NoteList.tsx @@ -180,11 +180,13 @@ export function useNoteIds(note: FNote | null | undefined, viewType: ViewTypeOpt // Refresh on alterations to the note subtree. useTriliumEvent("entitiesReloaded", ({ loadResults }) => { - if (note && loadResults.getBranchRows().some(branch => - branch.parentNoteId === note.noteId - || noteIds.includes(branch.parentNoteId ?? "")) + if (note && ( + loadResults.getNoteReorderings().includes(note.noteId) + || loadResults.getBranchRows().some(branch => + branch.parentNoteId === note.noteId + || noteIds.includes(branch.parentNoteId ?? "")) || loadResults.getAttributeRows().some(attr => attr.name === "archived" && attr.noteId && noteIds.includes(attr.noteId)) - ) { + )) { refreshNoteIds(); } });