Skip to content

Commit

Permalink
redirect if flag not set
Browse files Browse the repository at this point in the history
  • Loading branch information
nhsiehgit committed Oct 16, 2023
1 parent 33c912b commit 539f25f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/app/views/releases/thresholdsList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ type Props = RouteComponentProps<RouteParams, {}> & {
selection: PageFilters;
};

function ReleaseThresholdList({router}: Props) {
function ReleaseThresholdList({router, organization}: Props) {
const hasV2ReleaseUIEnabled = organization.features.includes('release-ui-v2');
if (!hasV2ReleaseUIEnabled) {
router.replace('/releases/');
}

return (
<div>
<Header router={router} hasV2ReleaseUIEnabled />
Expand Down

0 comments on commit 539f25f

Please sign in to comment.