Skip to content

Commit

Permalink
[Synthetics] Fix step details current step edge case (#150687)
Browse files Browse the repository at this point in the history
## Summary

Fixes #150612
  • Loading branch information
shahzad31 authored Feb 9, 2023
1 parent 30745e2 commit 38cb7b3
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export const StepDetailPage = () => {

useStepDetailsBreadcrumbs();

const activeStep = data?.steps?.find(
(step) => step.synthetics?.step?.index === Number(stepIndex)
);

const dispatch = useDispatch();

useEffect(() => {
Expand All @@ -51,7 +47,7 @@ export const StepDetailPage = () => {

return (
<>
<ErrorCallOut step={activeStep} />
<ErrorCallOut step={currentStep} />
{data?.details?.journey?.config_id && (
<MonitorDetailsLinkPortal
configId={data.details.journey.config_id}
Expand Down Expand Up @@ -109,7 +105,7 @@ export const StepDetailPage = () => {
<WaterfallChartContainer
checkGroup={checkGroupId}
stepIndex={Number(stepIndex)}
activeStep={activeStep}
activeStep={currentStep}
/>
)}
</>
Expand Down

0 comments on commit 38cb7b3

Please sign in to comment.