Skip to content

Commit

Permalink
ref(routes): Avoid usage of optional route params
Browse files Browse the repository at this point in the history
The syntax has changed in react-router 6. Instead of trying to build
compatability we can just remove the one optional route we have.
  • Loading branch information
evanpurkhiser committed May 10, 2024
1 parent 07ac900 commit f99ceb2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions static/app/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1705,12 +1705,9 @@ function buildRoutes() {
);

const issueListRoutes = (
<Route
path="/issues/(searches/:searchId/)"
component={errorHandler(IssueListContainer)}
withOrgPath
>
<Route path="/issues" component={errorHandler(IssueListContainer)} withOrgPath>
<IndexRoute component={errorHandler(IssueListOverview)} />
<Route path="searches/:searchId/" component={errorHandler(IssueListOverview)} />
</Route>
);

Expand Down

0 comments on commit f99ceb2

Please sign in to comment.