Skip to content

Commit

Permalink
♻️ Ensure all query params are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
leeandher committed Jan 14, 2025
1 parent 56a88fb commit e54ad2a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions static/app/views/issueDetails/groupDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ function useFetchGroupDetails(): FetchGroupDetailsState {
if (
isLatestOrRecommendedEvent &&
isEventError &&
router.location.query.query &&
// Expanding this list to ensure invalid date ranges get removed as well as queries
(router.location.query.query ||
router.location.query.start ||
router.location.query.end ||
router.location.query.statsPeriod) &&
!hasStreamlinedUI
) {
// If we get an error from the helpful event endpoint, it probably means
Expand All @@ -271,8 +275,7 @@ function useFetchGroupDetails(): FetchGroupDetailsState {
{
...router.location,
query: {
...router.location.query,
query: undefined,
project: router.location.query.project,
},
},
{replace: true}
Expand Down

0 comments on commit e54ad2a

Please sign in to comment.