diff --git a/CHANGELOG.md b/CHANGELOG.md index a870385db189..0bccc24b4ab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - [Discover] Fix missing index pattern field from breaking Discover [#5626](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5626) - [BUG] Remove duplicate sample data as id 90943e30-9a47-11e8-b64d-95841ca0b247 ([5668](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5668)) - [BUG][Multiple Datasource] Fix datasource testing connection unexpectedly passed with wrong endpoint [#5663](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5663) +- [Table Visualization] Fix filter action buttons for split table aggregations ([#5619](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5619)) - [BUG][Multiple Datasource] Datasource id is required if multiple datasource is enabled and no default cluster supported [#5751](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5751) ### 🚞 Infrastructure diff --git a/src/plugins/vis_type_table/public/components/table_vis_grid_columns.tsx b/src/plugins/vis_type_table/public/components/table_vis_grid_columns.tsx index 6bd2c0f1739f..66aa5b6ab491 100644 --- a/src/plugins/vis_type_table/public/components/table_vis_grid_columns.tsx +++ b/src/plugins/vis_type_table/public/components/table_vis_grid_columns.tsx @@ -15,6 +15,7 @@ export const getDataGridColumns = ( event: IInterpreterRenderHandlers['event'], columnWidths: ColumnWidth[] ) => { + const formattedColumnIds = table.formattedColumns.map((column) => column.id); const filterBucket = (rowIndex: number, columnIndex: number, negate: boolean) => { event({ name: 'filterBucket', @@ -22,7 +23,7 @@ export const getDataGridColumns = ( data: [ { table: { - columns: table.columns, + columns: table.columns.filter((column) => formattedColumnIds.includes(column.id)), rows: table.rows, }, row: rowIndex,