1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: check is flag enabled! (#2993)

## About the changes
This checks the feature toggle to see if change request is enabled for
variants

Tested  locally
This commit is contained in:
Gastón Fournier 2023-01-25 16:28:25 +01:00 committed by GitHub
parent 7d814a623f
commit 8589d59e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -360,7 +360,9 @@ export const EnvironmentVariantModal = ({
? 'Add to existing change request'
: 'Add change to draft';
const isChangeRequest = isChangeRequestConfigured(environment?.name || '');
const isChangeRequest =
isChangeRequestConfigured(environment?.name || '') &&
uiConfig.flags.crOnVariants;
return (
<SidebarModal