diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.test.tsx index 80ed3ca46b8a..a33e58709327 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.test.tsx @@ -21,6 +21,7 @@ describe('StepImageCaption', () => { setStepNumber: jest.fn(), stepNumber: 2, timestamp: '2020-11-26T15:28:56.896Z', + isLoading: false, }; }); diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.tsx index cdc6568ddad7..fe9709a02b68 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/step_image_caption.tsx @@ -19,7 +19,7 @@ export interface StepImageCaptionProps { setStepNumber: React.Dispatch>; stepNumber: number; timestamp: string; - isLoading?: boolean; + isLoading: boolean; } const ImageCaption = euiStyled.div` @@ -47,7 +47,7 @@ export const StepImageCaption: React.FC = ({ { - setStepNumber((prevState) => prevState - 1); + setStepNumber(stepNumber - 1); }} iconType="arrowLeft" aria-label={prevAriaLabel} @@ -63,7 +63,7 @@ export const StepImageCaption: React.FC = ({ { - setStepNumber((prevState) => prevState + 1); + setStepNumber(stepNumber + 1); }} iconType="arrowRight" iconSide="right"