Code cleanup.

This commit is contained in:
Mike Cao committed 2023-08-18 21:52:59 -07:00
1 parent 21cdb06571
commit 7d5a24044a
10 files changed
+34 -43

No files matched your search

+1 -3
View File
@@ -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 [
{