From 38fce25b86a30737675049b6cd7c235b3b7d4a7e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 14 Jul 2025 16:51:20 +0300 Subject: [PATCH] fix(views/table): show/hide columns not always updated properly --- .../src/widgets/view_widgets/table_view/context_menu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/view_widgets/table_view/context_menu.ts b/apps/client/src/widgets/view_widgets/table_view/context_menu.ts index 6d85b63c0..dd229ae87 100644 --- a/apps/client/src/widgets/view_widgets/table_view/context_menu.ts +++ b/apps/client/src/widgets/view_widgets/table_view/context_menu.ts @@ -88,11 +88,11 @@ function showColumnContextMenu(_e: UIEvent, column: ColumnComponent, tabulator: function buildColumnItems() { const items: MenuItem[] = []; for (const column of tabulator.getColumns()) { - const { title, visible, field } = column.getDefinition(); + const { title, field } = column.getDefinition(); items.push({ title, - checked: visible, + checked: column.isVisible(), uiIcon: "bx bx-empty", enabled: !!field, handler: () => column.toggle()