Skip to content

Commit

Permalink
Merge remote-tracking branch 'opencraft/jill/FAL-3758-sort-components…
Browse files Browse the repository at this point in the history
…' into yusuf-musleh/lib-v2-home-recently-modified
  • Loading branch information
pomegranited committed Jul 20, 2024
2 parents 187ec8f + de713db commit b1950e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search-manager/SearchManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const SearchContextProvider: React.FC<{
const [searchSortOrder, setSearchSortOrder] = useStateWithUrlSearchParam<SearchSortOption>(
SearchSortOption.RELEVANCE,
'sort',
(value: string) => Object.values(SearchSortOption).find((enumValue) => value === `${enumValue}`),
(value: string) => Object.values(SearchSortOption).find((enumValue) => value === enumValue),
(value: SearchSortOption) => value.toString(),
);
// Note: SearchSortOption.RELEVANCE is special, it means "no custom sorting",
Expand Down

0 comments on commit b1950e9

Please sign in to comment.