From b51e096662f987404d6d440c7d015699bcf7e969 Mon Sep 17 00:00:00 2001 From: Luan Freitas <33601626+luanfreitasdev@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:22:06 -0300 Subject: [PATCH] Fix perPage All click (#1742) * Fix perPage All click * Fix perPage All click --- src/DataSource/Processors/DataSourceBase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DataSource/Processors/DataSourceBase.php b/src/DataSource/Processors/DataSourceBase.php index 82c5b622..196f99c4 100644 --- a/src/DataSource/Processors/DataSourceBase.php +++ b/src/DataSource/Processors/DataSourceBase.php @@ -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); }