Skip to content

Commit

Permalink
Sort type default (#340)
Browse files Browse the repository at this point in the history
* Change default sorting

* Change default sorting
  • Loading branch information
valeriibudko authored Mar 22, 2024
1 parent 941277e commit 2a8fe84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/search/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export const getServerSideProps = async ({ query: searchParams }) => {
props: {},
}
}
const { q, page = 1, limit = 10, sort = 'recency' } = searchParams
// TODO for nice response
// const { q, page = 1, limit = 10, sort = 'recency' } = searchParams
const { q, page = 1, limit = 10, sort = 'relevance' } = searchParams

const data = {
currentPage: +page,
Expand Down

0 comments on commit 2a8fe84

Please sign in to comment.