From f629773fef49b2e1198685a57ce3f6db129eb4a7 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 27 Nov 2024 13:31:30 +0100 Subject: [PATCH] fix: show variant diff on applied CR (#8869) --- .../ChangeRequest/Changes/Change/StrategyChange.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx index fd03701a16..4919870402 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx @@ -187,10 +187,6 @@ const UpdateStrategy: FC<{ currentStrategy: IFeatureStrategy | undefined; actions?: ReactNode; }> = ({ change, changeRequestState, currentStrategy, actions }) => { - const hasVariantDiff = hasDiff( - currentStrategy?.variants || [], - change.payload.variants || [], - ); const previousTitle = changeRequestState === 'Applied' ? change.payload.snapshot?.title @@ -199,6 +195,10 @@ const UpdateStrategy: FC<{ changeRequestState === 'Applied' ? change.payload.snapshot : currentStrategy; + const hasVariantDiff = hasDiff( + referenceStrategy?.variants || [], + change.payload.variants || [], + ); return ( <>