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 fbb8265 commit b551eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataSource/Processors/DataSourceBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b551eb2

Please sign in to comment.