Skip to content

Commit

Permalink
[ML] Fix data grid actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Oct 5, 2020
1 parent 43493bb commit 6d0f3e6
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ export const DataGrid: FC<Props> = memo(
// };
// };

// If the charts are visible, hide the column actions icon.
const columnsWithChartsActionized = columnsWithCharts.map((d) => {
d.actions = !chartsVisible;
return d;
});

const popOverContent = useMemo(() => {
return analysisType === ANALYSIS_CONFIG_TYPE.REGRESSION ||
analysisType === ANALYSIS_CONFIG_TYPE.CLASSIFICATION
Expand Down Expand Up @@ -254,7 +260,7 @@ export const DataGrid: FC<Props> = memo(
<div className="mlDataGrid">
<EuiDataGrid
aria-label={isWithHeader(props) ? props.title : ''}
columns={columnsWithCharts.map((c) => {
columns={columnsWithChartsActionized.map((c) => {
c.initialWidth = 165;
return c;
})}
Expand Down

0 comments on commit 6d0f3e6

Please sign in to comment.