diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/activity_log_date_range_picker/index.tsx b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/activity_log_date_range_picker/index.tsx index 60adbf3060f2d..e921078539303 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/activity_log_date_range_picker/index.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/activity_log_date_range_picker/index.tsx @@ -33,22 +33,6 @@ export const DateRangePicker = memo(() => { getActivityLogDataPaging ); - const onClear = useCallback( - ({ clearStart = false, clearEnd = false }: { clearStart?: boolean; clearEnd?: boolean }) => { - dispatch({ - type: 'endpointDetailsActivityLogUpdatePaging', - payload: { - disabled: false, - page, - pageSize, - startDate: clearStart ? undefined : startDate, - endDate: clearEnd ? undefined : endDate, - }, - }); - }, - [dispatch, endDate, startDate, page, pageSize] - ); - const onChangeStartDate = useCallback( (date) => { dispatch({ @@ -95,7 +79,6 @@ export const DateRangePicker = memo(() => { endDate={endDate ? moment(endDate) : undefined} isInvalid={isInvalidDateRange} onChange={onChangeStartDate} - onClear={() => onClear({ clearStart: true })} placeholderText={i18.ACTIVITY_LOG.datePicker.startDate} selected={startDate ? moment(startDate) : undefined} showTimeSelect @@ -108,7 +91,6 @@ export const DateRangePicker = memo(() => { endDate={endDate ? moment(endDate) : undefined} isInvalid={isInvalidDateRange} onChange={onChangeEndDate} - onClear={() => onClear({ clearEnd: true })} placeholderText={i18.ACTIVITY_LOG.datePicker.endDate} selected={endDate ? moment(endDate) : undefined} showTimeSelect