diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx index 7369459507..244c7d4ef4 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx @@ -100,7 +100,14 @@ export const ConsolidatedProgressionChanges: FC<{ if (progressionChanges.length === 0) return null; - const basePlan = currentReleasePlan; + const firstChange = progressionChanges[0]; + const releasePlan = + (changeRequestState === 'Applied' || !currentReleasePlan) && + firstChange.payload.snapshot + ? firstChange.payload.snapshot + : currentReleasePlan; + + const basePlan = releasePlan; if (!basePlan) { return null; diff --git a/frontend/src/component/changeRequest/changeRequest.types.ts b/frontend/src/component/changeRequest/changeRequest.types.ts index 9fc35ffebb..cf788ccee9 100644 --- a/frontend/src/component/changeRequest/changeRequest.types.ts +++ b/frontend/src/component/changeRequest/changeRequest.types.ts @@ -288,10 +288,12 @@ type ChangeRequestChangeMilestoneProgression = { sourceMilestone: string; targetMilestone: string; transitionCondition: { intervalMinutes: number }; + snapshot?: IReleasePlan; }; type ChangeRequestDeleteMilestoneProgression = { sourceMilestone: string; + snapshot?: IReleasePlan; }; export type ChangeRequestAddStrategy = Pick<