mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Fix pager.
This commit is contained in:
parent
aa5d81d6a1
commit
0487e48dd2
2 changed files with 4 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue