mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-08 02:18:25 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
0f12226401
@ -185,7 +185,7 @@ function getPageFilters(filters: SearchFilter): [
|
|||||||
orderBy: string;
|
orderBy: string;
|
||||||
},
|
},
|
||||||
] {
|
] {
|
||||||
const { page = 1, pageSize = DEFAULT_PAGE_SIZE, orderBy } = filters || {};
|
const { page = 1, pageSize = DEFAULT_PAGE_SIZE, orderBy, sortDescending = false } = filters || {};
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
@ -193,7 +193,7 @@ function getPageFilters(filters: SearchFilter): [
|
|||||||
...(orderBy && {
|
...(orderBy && {
|
||||||
orderBy: [
|
orderBy: [
|
||||||
{
|
{
|
||||||
[orderBy]: 'asc',
|
[orderBy]: sortDescending ? 'desc' : 'asc',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user