Skip to content

Commit

Permalink
[Security Solution][RAC] Refix expand (#110236)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 authored Aug 26, 2021
1 parent 00c9a76 commit 416d42a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions x-pack/plugins/timelines/public/components/t_grid/body/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -622,17 +622,12 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
const rowData = rowIndex < data.length ? data[rowIndex].data : null;
const header = columnHeaders.find((h) => h.id === columnId);
const eventId = rowIndex < data.length ? data[rowIndex]._id : null;
const defaultStyles = useMemo(
() => ({
overflow: 'hidden',
}),
[]
);
setCellProps({ style: { ...defaultStyles } });

useEffect(() => {
const defaultStyles = { overflow: 'hidden' };
setCellProps({ style: { ...defaultStyles } });
addBuildingBlockStyle(data[rowIndex].ecs, theme, setCellProps, defaultStyles);
}, [rowIndex, setCellProps, defaultStyles]);
}, [rowIndex, setCellProps]);

if (rowData == null || header == null || eventId == null) {
return null;
Expand Down

0 comments on commit 416d42a

Please sign in to comment.