Skip to content

Commit 00571f7

Browse files
authored
feat(issues): Hide events environment picker w/ header picker (getsentry#40989)
1 parent e05aa46 commit 00571f7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

static/app/views/organizationGroupDetails/groupEvents.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,21 @@ class GroupEvents extends Component<Props, State> {
224224
}
225225

226226
render() {
227+
// New issue actions moves the environment picker to the header
228+
const hasIssueActionsV2 =
229+
this.props.organization.features.includes('issue-actions-v2');
227230
return (
228231
<Layout.Body>
229232
<Layout.Main fullWidth>
230233
<Wrapper>
231-
<FilterSection>
232-
<EnvironmentPageFilter />
233-
{this.renderSearchBar()}
234-
</FilterSection>
234+
{hasIssueActionsV2 ? (
235+
this.renderSearchBar()
236+
) : (
237+
<FilterSection>
238+
<EnvironmentPageFilter />
239+
{this.renderSearchBar()}
240+
</FilterSection>
241+
)}
235242
{this.renderBody()}
236243
</Wrapper>
237244
</Layout.Main>

0 commit comments

Comments
 (0)