Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(views/board): react to changes in "groupBy"
Elian Doran8b6826ffa46b
diff --git a/apps/client/src/widgets/view_widgets/board_view/index.ts b/apps/client/src/widgets/view_widgets/board_view/index.tsindex 19f7f9bd93..cb335ac8f9 100644--- a/apps/client/src/widgets/view_widgets/board_view/index.ts+++ b/apps/client/src/widgets/view_widgets/board_view/index.ts@@ -547,7 +547,9 @@ export default class BoardView extends ViewMode<BoardData> {// React to changes in branches for subchildren (e.g., moved, added, or removed notes)loadResults.getBranchRows().some(branch => this.noteIds.includes(branch.noteId!)) ||// React to attachment change- loadResults.getAttachmentRows().some(att => att.ownerId === this.parentNote.noteId && att.title === "board.json");+ loadResults.getAttachmentRows().some(att => att.ownerId === this.parentNote.noteId && att.title === "board.json") ||+ // React to changes in "groupBy"+ loadResults.getAttributeRows().some(attr => attr.name === "board:groupBy" && attr.noteId === this.parentNote.noteId);if (hasRelevantChanges && this.renderer) {// Use differential rendering with API refresh