mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Auto stash before merge of "dev" and "origin/dev"
This commit is contained in:
parent
40cfcd41e9
commit
49ad536f24
1 changed files with 2 additions and 2 deletions
|
|
@ -185,7 +185,7 @@ function getPageFilters(filters: SearchFilter): [
|
|||
orderBy: string;
|
||||
},
|
||||
] {
|
||||
const { page = 1, pageSize = DEFAULT_PAGE_SIZE, orderBy } = filters || {};
|
||||
const { page = 1, pageSize = DEFAULT_PAGE_SIZE, orderBy, sortDescending = false } = filters || {};
|
||||
|
||||
return [
|
||||
{
|
||||
|
|
@ -193,7 +193,7 @@ function getPageFilters(filters: SearchFilter): [
|
|||
...(orderBy && {
|
||||
orderBy: [
|
||||
{
|
||||
[orderBy]: 'asc',
|
||||
[orderBy]: sortDescending ? 'desc' : 'asc',
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue