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:
parent
570f8d2c34
commit
f629773fef
@ -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 (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user