Skip to content

Commit

Permalink
safe check
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Jun 26, 2020
1 parent 63e15d3 commit 3835a5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const Body = React.memo<BodyProps>(
const containerElementRef = useRef<HTMLDivElement>(null);
const { getManageTimelineById } = useManageTimeline();
const timelineActions = useMemo(
() => getManageTimelineById(id).timelineRowActions(data[0].ecs),
() => (data.length > 0 ? getManageTimelineById(id).timelineRowActions(data[0].ecs) : []),
[data, getManageTimelineById, id]
);

Expand Down

0 comments on commit 3835a5e

Please sign in to comment.