Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
logeekal committed Feb 22, 2023
1 parent f6c8506 commit 7c70b73
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
Expand Down Expand Up @@ -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}
Expand All @@ -103,7 +103,7 @@ export const getUseActionColumnHook =
showCheckboxes,
leadingControlColumns,
selectedEventIds,
onRuleChange,
eventContext,
]
);

Expand Down

0 comments on commit 7c70b73

Please sign in to comment.