Skip to content

Commit

Permalink
Merge pull request #50583 from Nodebrute/search
Browse files Browse the repository at this point in the history
fix search param
  • Loading branch information
tgolen authored Oct 14, 2024
2 parents ec4f6e0 + 492c96b commit 9728f15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Search/SearchPageBottomTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function SearchPageBottomTab() {

const searchParams = activeCentralPaneRoute?.params as AuthScreensParamList[typeof SCREENS.SEARCH.CENTRAL_PANE];
const parsedQuery = SearchUtils.buildSearchQueryJSON(searchParams?.q);
const searchName = searchParams?.name;
const isSearchNameModified = searchParams?.name === searchParams?.q;
const searchName = isSearchNameModified ? undefined : searchParams?.name;
const policyIDFromSearchQuery = parsedQuery && SearchUtils.getPolicyIDFromSearchQuery(parsedQuery);
const isActiveCentralPaneRoute = activeCentralPaneRoute?.name === SCREENS.SEARCH.CENTRAL_PANE;
const queryJSON = isActiveCentralPaneRoute ? parsedQuery : undefined;
Expand Down

0 comments on commit 9728f15

Please sign in to comment.