Skip to content

Commit

Permalink
unselect LHN item if custom query
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Aug 27, 2024
1 parent 6ca91cd commit a6a381f
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 a6a381f

Please sign in to comment.