Fix pager.
This commit is contained in:
1 parent
aa5d81d6a1
commit
0487e48dd2
2 files changed
+4
-3
No files matched your search
@@ -45,11 +45,11 @@ export function DataTable({
|
||||
const noResults = Boolean(!isLoading && query && !hasData);
|
||||
|
||||
const handleSearch = query => {
|
||||
setParams({ ...params, query, page: params.query ? page : 1 });
|
||||
setParams({ ...params, query, page: params.page ? page : 1 });
|
||||
};
|
||||
|
||||
const handlePageChange = page => {
|
||||
setParams({ ...params, page });
|
||||
setParams({ ...params, query, page });
|
||||
};
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in new issue
Block a user