1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

fix: hide variant diff if no change in ChangeRequestOverview (#5715)

Closes #
[1-1813](https://linear.app/unleash/issue/1-1813/do-not-show-variants-table-in-change-request-when-no-variant-change)

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2023-12-21 10:39:18 +02:00 committed by GitHub
parent 3ab331dce7
commit e0f83347ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ export const StrategyChange: VFC<{
</ChangeItemCreateEditWrapper>
<StrategyExecution strategy={change.payload} />
<ConditionallyRender
condition={Boolean(change.payload.variants)}
condition={hasVariantDiff}
show={
change.payload.variants && (
<StyledBox>