diff --git a/x-pack/plugins/ml/public/application/components/data_grid/data_grid.tsx b/x-pack/plugins/ml/public/application/components/data_grid/data_grid.tsx index 8a290ee186a98..9d5422be1256d 100644 --- a/x-pack/plugins/ml/public/application/components/data_grid/data_grid.tsx +++ b/x-pack/plugins/ml/public/application/components/data_grid/data_grid.tsx @@ -346,74 +346,76 @@ export const DataGrid: FC = memo( )} - - {(mutationRef) => ( -
- { - c.initialWidth = 165; - return c; - })} - columnVisibility={{ visibleColumns, setVisibleColumns }} - trailingControlColumns={trailingControlColumns} - gridStyle={euiDataGridStyle} - rowCount={rowCount} - renderCellValue={renderCellValue} - renderCellPopover={renderCellPopover} - sorting={{ columns: sortingColumns, onSort }} - toolbarVisibility={{ - ...euiDataGridToolbarSettings, - ...(chartsButtonVisible - ? { - additionalControls: ( - - 0 && ( + + {(mutationRef) => ( +
+ { + c.initialWidth = 165; + return c; + })} + columnVisibility={{ visibleColumns, setVisibleColumns }} + trailingControlColumns={trailingControlColumns} + gridStyle={euiDataGridStyle} + rowCount={rowCount} + renderCellValue={renderCellValue} + renderCellPopover={renderCellPopover} + sorting={{ columns: sortingColumns, onSort }} + toolbarVisibility={{ + ...euiDataGridToolbarSettings, + ...(chartsButtonVisible + ? { + additionalControls: ( + - - - - ), - } - : {}), - }} - pagination={{ - ...pagination, - pageSizeOptions: [5, 10, 25], - onChangeItemsPerPage, - onChangePage, - }} - /> -
- )} -
+ + + +
+ ), + } + : {}), + }} + pagination={{ + ...pagination, + pageSizeOptions: [5, 10, 25], + onChangeItemsPerPage, + onChangePage, + }} + /> +
+ )} +
+ )} ); },