diff --git a/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx b/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx index 21a3d5f3ff230..637f1a48143a9 100644 --- a/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx +++ b/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx @@ -179,10 +179,8 @@ const makeMapStateToProps = () => { sort, showCheckboxes, // Used to determine whether the footer should show (since it is hidden if the graph is showing.) - graphEventId: /** `getTimeline` actually returns `TimelineModel | undefined` */ (getTimeline( - state, - id - ) as TimelineModel | undefined)?.graphEventId, + // `getTimeline` actually returns `TimelineModel | undefined` + graphEventId: (getTimeline(state, id) as TimelineModel | undefined)?.graphEventId, }; }; return mapStateToProps;