diff --git a/src/DataSource/Processors/DataSourceBase.php b/src/DataSource/Processors/DataSourceBase.php index 82c5b622..82f89cf3 100644 --- a/src/DataSource/Processors/DataSourceBase.php +++ b/src/DataSource/Processors/DataSourceBase.php @@ -82,7 +82,9 @@ protected function applyPerPage(EloquentBuilder|QueryBuilder|MorphToMany|ScoutBu $count = $results->count(); // @phpstan-ignore-line - return $results->$paginate($count ?: 10, pageName: $pageName); + $this->component->gotoPage(1); + + return $results->$paginate($count, pageName: $pageName); } protected function setTotalCount(EloquentBuilder|MorphToMany|QueryBuilder|LengthAwarePaginator|Paginator $results): void