From b551eb24947a731ee19d668a1ad3678e47319958 Mon Sep 17 00:00:00 2001 From: luanfreitasdev Date: Sat, 19 Oct 2024 12:18:24 -0300 Subject: [PATCH] Fix perPage All click --- src/DataSource/Processors/DataSourceBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataSource/Processors/DataSourceBase.php b/src/DataSource/Processors/DataSourceBase.php index 82f89cf3..196f99c4 100644 --- a/src/DataSource/Processors/DataSourceBase.php +++ b/src/DataSource/Processors/DataSourceBase.php @@ -84,7 +84,7 @@ protected function applyPerPage(EloquentBuilder|QueryBuilder|MorphToMany|ScoutBu $this->component->gotoPage(1); - return $results->$paginate($count, pageName: $pageName); + return $results->$paginate($count ?: 10, pageName: $pageName); } protected function setTotalCount(EloquentBuilder|MorphToMany|QueryBuilder|LengthAwarePaginator|Paginator $results): void