[Security Solution][RAC] Refix expand (#110236)

This commit is contained in:
Michael Olorunnisola 2021-08-26 12:01:28 -04:00 committed by GitHub
parent 00c9a76e0d
commit 416d42a22a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;