Skip to content

Commit

Permalink
fix: When current asset page exceeds totalPages, go to start
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Nov 2, 2024
1 parent 6d5ae3c commit f75a2b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/app/src/pages/AssetsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export function AssetsPage() {
],
});

if (filter.page > listQuery.data.totalPages) {
updateFilter({ page: 1 });
}

return (
<div className="p-8">
<h1 className="mb-8 text-xl font-semibold">Assets</h1>
Expand Down

0 comments on commit f75a2b3

Please sign in to comment.