From 7c70b7366fab19c2a9629c8e28ac9bfa2c6e40b5 Mon Sep 17 00:00:00 2001 From: Jatin Kathuria Date: Wed, 22 Feb 2023 16:30:10 +0100 Subject: [PATCH] fix: types --- .../trigger_actions_alert_table/use_actions_column.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_actions_column.tsx b/x-pack/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_actions_column.tsx index 3139ec423857e..0455a9dc9ee53 100644 --- a/x-pack/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_actions_column.tsx +++ b/x-pack/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_actions_column.tsx @@ -26,7 +26,7 @@ export const getUseActionColumnHook = const isEnterprisePlus = license.isEnterprise(); const ACTION_BUTTON_COUNT = isEnterprisePlus ? 5 : 4; - const { onRuleChange } = useContext(StatefulEventContext); + const eventContext = useContext(StatefulEventContext); const leadingControlColumns = useMemo( () => [...getDefaultControlColumn(ACTION_BUTTON_COUNT)], @@ -81,7 +81,7 @@ export const getUseActionColumnHook = selectedEventIds={selectedEventIds} setCellProps={cveProps.setCellProps} showCheckboxes={showCheckboxes} - onRuleChange={onRuleChange} + onRuleChange={eventContext?.onRuleChange} tabType={'query'} tableId={tableId} width={0} @@ -103,7 +103,7 @@ export const getUseActionColumnHook = showCheckboxes, leadingControlColumns, selectedEventIds, - onRuleChange, + eventContext, ] );