mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Code cleanup.
This commit is contained in:
parent
21cdb06571
commit
7d5a24044a
10 changed files with 34 additions and 43 deletions
|
|
@ -185,9 +185,7 @@ function getPageFilters(filters: SearchFilter<any>): [
|
|||
orderBy: string;
|
||||
},
|
||||
] {
|
||||
const pageSize = filters?.pageSize || 10;
|
||||
const page = filters?.page || 1;
|
||||
const orderBy = filters?.orderBy;
|
||||
const { pageSize = 10, page = 1, orderBy } = filters || {};
|
||||
|
||||
return [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue