Skip to content

Commit

Permalink
Fix perPage All click
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Oct 19, 2024
1 parent 7e5fab7 commit c88f50f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DataSource/Processors/DataSourceBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c88f50f

Please sign in to comment.