Skip to content

Commit

Permalink
Don't overwrite project or env if present in search params
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSun48 committed Sep 20, 2024
1 parent fda6afa commit 99e892b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/app/views/issueList/customViewsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ function CustomViewsIssueListHeaderTabsContent({
// TODO(msun): Use the location from useLocation instead of props router in the future
const {cursor: _cursor, page: _page, ...queryParams} = router?.location.query;

const {query, sort, viewId, project, environment} = queryParams;

const queryParamsWithPageFilters = {
...queryParams,
project: pageFilters.selection.projects,
environment: pageFilters.selection.environments,
project: project ?? pageFilters.selection.projects,
environment: environment ?? pageFilters.selection.environments,
...normalizeDateTimeParams(pageFilters.selection.datetime),
};

const {query, sort, viewId} = queryParams;

const viewsToTabs = views.map(
({id, name, query: viewQuery, querySort: viewQuerySort}, index): Tab => {
const tabId = id ?? `default${index.toString()}`;
Expand Down

0 comments on commit 99e892b

Please sign in to comment.