Skip to content

Commit

Permalink
Merge pull request Expensify#48094 from Expensify/cmartins-fixSelecte…
Browse files Browse the repository at this point in the history
…dLHNItem

Deselect LHN item if custom query
  • Loading branch information
carlosmiceli authored Aug 29, 2024
2 parents 8c69c58 + a6a381f commit e77f204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Search/SearchTypeMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function SearchTypeMenu({queryJSON, isCustomQuery}: SearchTypeMenuProps) {
route: ROUTES.SEARCH_CENTRAL_PANE.getRoute({query: SearchUtils.buildCannedSearchQuery(CONST.SEARCH.DATA_TYPES.TRIP, CONST.SEARCH.STATUS.TRIP.ALL)}),
},
];
const activeItemIndex = typeMenuItems.findIndex((item) => item.type === type);
const activeItemIndex = isCustomQuery ? -1 : typeMenuItems.findIndex((item) => item.type === type);

if (shouldUseNarrowLayout) {
const title = isCustomQuery ? SearchUtils.getSearchHeaderTitle(queryJSON) : undefined;
Expand Down

0 comments on commit e77f204

Please sign in to comment.