Skip to content

Build your personal knowledge base with Trilium Notes

fix(views/table): refreshing of columns

Elian Doranb2d20af51a8c
diff --git a/apps/client/src/widgets/view_widgets/table_view/index.ts b/apps/client/src/widgets/view_widgets/table_view/index.ts
index f7133458a1..1d299c9c0f 100644
--- a/apps/client/src/widgets/view_widgets/table_view/index.ts
+++ b/apps/client/src/widgets/view_widgets/table_view/index.ts
@@ -209,9 +209,7 @@ export default class TableView extends ViewMode<StateInfo> {
attributes.isAffecting(attr, this.parentNote))) {
const info = getPromotedAttributeInformation(this.parentNote);
const columnDefs = buildColumnDefinitions(info);
- this.api?.updateGridOptions({
- columnDefs
- })
+ this.api?.setColumns(columnDefs)
}
if (loadResults.getBranchRows().some(branch => branch.parentNoteId === this.parentNote.noteId)) {