diff --git a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx index 1eef87ed9efcd..4cee2eb9bfca8 100644 --- a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx +++ b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.tsx @@ -63,8 +63,11 @@ export const PingTimestamp = ({ const [screenshotRef, setScreenshotRef] = useState(undefined); + const isScreenshotRefValid = Boolean( + screenshotRef && screenshotRef?.ref?.screenshotRef?.synthetics?.step?.index === stepNumber + ); const { data, loading } = useInProgressImage({ - hasImage: Boolean(stepImages[stepNumber - 1]) || Boolean(screenshotRef), + hasImage: Boolean(stepImages[stepNumber - 1]) || isScreenshotRefValid, hasIntersected: Boolean(intersection && intersection.intersectionRatio === 1), stepStatus, imgPath,