From 8b6826ffa46b4bb157f312083e6ea46069c37d50 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 21 Jul 2025 14:52:29 +0300 Subject: [PATCH] feat(views/board): react to changes in "groupBy" --- apps/client/src/widgets/view_widgets/board_view/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/view_widgets/board_view/index.ts b/apps/client/src/widgets/view_widgets/board_view/index.ts index 19f7f9bd9..cb335ac8f 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 { // 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