mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02: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;
|
currentStrategy: IFeatureStrategy | undefined;
|
||||||
actions?: ReactNode;
|
actions?: ReactNode;
|
||||||
}> = ({ change, changeRequestState, currentStrategy, actions }) => {
|
}> = ({ change, changeRequestState, currentStrategy, actions }) => {
|
||||||
const hasVariantDiff = hasDiff(
|
|
||||||
currentStrategy?.variants || [],
|
|
||||||
change.payload.variants || [],
|
|
||||||
);
|
|
||||||
const previousTitle =
|
const previousTitle =
|
||||||
changeRequestState === 'Applied'
|
changeRequestState === 'Applied'
|
||||||
? change.payload.snapshot?.title
|
? change.payload.snapshot?.title
|
||||||
@ -199,6 +195,10 @@ const UpdateStrategy: FC<{
|
|||||||
changeRequestState === 'Applied'
|
changeRequestState === 'Applied'
|
||||||
? change.payload.snapshot
|
? change.payload.snapshot
|
||||||
: currentStrategy;
|
: currentStrategy;
|
||||||
|
const hasVariantDiff = hasDiff(
|
||||||
|
referenceStrategy?.variants || [],
|
||||||
|
change.payload.variants || [],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
Reference in New Issue
Block a user