Skip to content

Commit

Permalink
fix: show variant diff on applied CR
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Nov 27, 2024
1 parent 570f8d2 commit 6b11999
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -199,6 +195,10 @@ const UpdateStrategy: FC<{
changeRequestState === 'Applied'
? change.payload.snapshot
: currentStrategy;
const hasVariantDiff = hasDiff(
referenceStrategy?.variants || [],
change.payload.variants || [],
);

return (
<>
Expand Down

0 comments on commit 6b11999

Please sign in to comment.