From 178a1194fa256c379283fe84908e072a2a5dd581 Mon Sep 17 00:00:00 2001 From: Ievgen Sorokopud Date: Fri, 3 Nov 2023 12:09:35 +0100 Subject: [PATCH] Make alerts table row to fit user profile avatars by default --- .../detections/components/alerts_table/index.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/alerts_table/index.tsx b/x-pack/plugins/security_solution/public/detections/components/alerts_table/index.tsx index 4be4595e19afe..9dd627cec4444 100644 --- a/x-pack/plugins/security_solution/public/detections/components/alerts_table/index.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/alerts_table/index.tsx @@ -197,14 +197,11 @@ export const AlertsTableComponent: FC = ({ [isEventRenderedView] ); - const rowHeightsOptions: EuiDataGridRowHeightsOptions | undefined = useMemo(() => { - if (isEventRenderedView) { - return { - defaultHeight: 'auto', - }; - } - return undefined; - }, [isEventRenderedView]); + const rowHeightsOptions: EuiDataGridRowHeightsOptions = useMemo(() => { + return { + defaultHeight: 'auto', + }; + }, []); const alertColumns = useMemo( () => (columns.length ? columns : getColumns(license)),