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
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.tsindex 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 boardawait 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);}