Skip to content

Commit

Permalink
Merge pull request Expensify#52280 from Expensify/cmartins-sortByAction
Browse files Browse the repository at this point in the history
Fix sort on multiple statuses
  • Loading branch information
luacmartins authored Nov 12, 2024
2 parents b2d6a0e + 754a11c commit 64cb4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function Search({queryJSON, onSearchListScroll, isSearchScreenFocused, contentCo
};

const shouldShowYear = SearchUIUtils.shouldShowYear(searchResults?.data);
const shouldShowSorting = Array.isArray(status) ? status.some((s) => sortableSearchStatuses.includes(s)) : sortableSearchStatuses.includes(status);
const shouldShowSorting = !Array.isArray(status) && sortableSearchStatuses.includes(status);

return (
<SelectionListWithModal<ReportListItemType | TransactionListItemType | ReportActionListItemType>
Expand Down

0 comments on commit 64cb4ee

Please sign in to comment.