mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Default density sort to desc
This commit is contained in:
parent
0fd378811f
commit
641d22a7cc
1 changed files with 5 additions and 4 deletions
|
@ -1088,10 +1088,11 @@ function Catchup() {
|
|||
checked={sortBy === key}
|
||||
onChange={() => {
|
||||
setSortBy(key);
|
||||
const order =
|
||||
/(replies|favourites|reblogs|density)/.test(key)
|
||||
? 'desc'
|
||||
: 'asc';
|
||||
const order = /(replies|favourites|reblogs)/.test(
|
||||
key,
|
||||
)
|
||||
? 'desc'
|
||||
: 'asc';
|
||||
setSortOrder(order);
|
||||
}}
|
||||
// disabled={key === 'account' && selectedAuthor}
|
||||
|
|
Loading…
Reference in a new issue