1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: show variant diff on applied CR (#8869)

This commit is contained in:
Mateusz Kwasniewski 2024-11-27 13:31:30 +01:00 committed by GitHub
parent 570f8d2c34
commit f629773fef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 (
<>