Skip to content

Build your personal knowledge base with Trilium Notes

refactor(views/board): unnecessary re-render

Elian Dorand9a289bf18d4
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 cb335ac8f9..a438d62823 100644
--- a/apps/client/src/widgets/view_widgets/board_view/index.ts
+++ b/apps/client/src/widgets/view_widgets/board_view/index.ts
@@ -403,10 +403,8 @@ export default class BoardView extends ViewMode<BoardData> {
const noteIds = columnItems.map(item => item.note.noteId);
// Use the API to rename the column (update all notes)
+ // This will trigger onEntitiesReloaded which will automatically refresh the board
await this.api?.renameColumn(oldValue, newValue, noteIds);
-
- // Refresh the board to reflect the changes
- await this.renderList();
} catch (error) {
console.error("Failed to rename column:", error);
}