Auto stash before merge of "dev" and "origin/dev"

This commit is contained in:
Brian Cao 2023-09-28 13:14:15 -07:00
parent 40cfcd41e9
commit 49ad536f24

View File

@ -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',
}, },
], ],
}), }),