Skip to content

Commit

Permalink
Fix perPage All click (#1742)
Browse files Browse the repository at this point in the history
* Fix perPage All click

* Fix perPage All click
  • Loading branch information
luanfreitasdev authored Oct 19, 2024
1 parent 12fd5b3 commit b51e096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DataSource/Processors/DataSourceBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ protected function applyPerPage(EloquentBuilder|QueryBuilder|MorphToMany|ScoutBu

$count = $results->count(); // @phpstan-ignore-line

$this->component->gotoPage(1);

return $results->$paginate($count ?: 10, pageName: $pageName);
}

Expand Down

0 comments on commit b51e096

Please sign in to comment.