diff --git a/src/sentry/static/sentry/app/views/ruleEditor/index.jsx b/src/sentry/static/sentry/app/views/ruleEditor/index.jsx index e6c8b721d0b98f..0d5b0966acf21e 100644 --- a/src/sentry/static/sentry/app/views/ruleEditor/index.jsx +++ b/src/sentry/static/sentry/app/views/ruleEditor/index.jsx @@ -173,9 +173,6 @@ const RuleEditor = createReactClass({ }, render() { - const hasEnvironmentsFeature = new Set(this.props.organization.features).has( - 'environments' - ); const activeEnvs = EnvironmentStore.getActive() || []; const environmentChoices = [ ['all', t('All Environments')], @@ -246,22 +243,18 @@ const RuleEditor = createReactClass({
- {hasEnvironmentsFeature && ( - -
{t('In this environment')}:
- this.handleEnvironmentChange(val)} - /> - -
-
- )} +
{t('In this environment')}:
+ this.handleEnvironmentChange(val)} + /> + +
{t('Take these actions:')}
diff --git a/tests/js/spec/views/__snapshots__/projectAlertRuleDetails.spec.jsx.snap b/tests/js/spec/views/__snapshots__/projectAlertRuleDetails.spec.jsx.snap index 0cff2384f17225..fdbdd49570dac1 100644 --- a/tests/js/spec/views/__snapshots__/projectAlertRuleDetails.spec.jsx.snap +++ b/tests/js/spec/views/__snapshots__/projectAlertRuleDetails.spec.jsx.snap @@ -285,6 +285,72 @@ exports[`ProjectAlertRuleDetails Edit alert rule renders 1`] = `
+
+ In this environment + : +
+ +
+
+ +
+
+
+
Take these actions:
@@ -819,6 +885,72 @@ exports[`ProjectAlertRuleDetails New alert rule renders 1`] = `
+
+ In this environment + : +
+ +
+
+ +
+
+
+
Take these actions: