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:
parent
7d814a623f
commit
8589d59e4b
@ -360,7 +360,9 @@ export const EnvironmentVariantModal = ({
|
|||||||
? 'Add to existing change request'
|
? 'Add to existing change request'
|
||||||
: 'Add change to draft';
|
: 'Add change to draft';
|
||||||
|
|
||||||
const isChangeRequest = isChangeRequestConfigured(environment?.name || '');
|
const isChangeRequest =
|
||||||
|
isChangeRequestConfigured(environment?.name || '') &&
|
||||||
|
uiConfig.flags.crOnVariants;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidebarModal
|
<SidebarModal
|
||||||
|
Loading…
Reference in New Issue
Block a user