diff --git a/src/app/modules/components/paginator.module.tsx b/src/app/modules/components/paginator.module.tsx index bc988a9..65b6b62 100644 --- a/src/app/modules/components/paginator.module.tsx +++ b/src/app/modules/components/paginator.module.tsx @@ -52,7 +52,7 @@ export const Paginator = ({ total_count, take, onChange }: PaginatorProps) => { return _display ?
{_pages.length > 0 && <> - _setPage(0)} src="/static/icons/arrow.svg" /> + _setPage(last => Math.max(0, last - 1))} src="/static/icons/arrow.svg" /> {_pages} _setPage(last => Math.min(last + 1, Math.ceil(_totalCount / _take) - 1))} src="/static/icons/arrow.svg" />