Skip to content

Commit

Permalink
- set the total value of the table component to get paginating with c…
Browse files Browse the repository at this point in the history
…ollections or arrays (#1491)
  • Loading branch information
marineusde authored Apr 3, 2024
1 parent 8998583 commit fcf575c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ProcessDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ private function processCollection(mixed $datasource, bool $isExport = false): \

$results = $this->component->applySorting($filters);

$this->component->total = $results->count();

if ($results->count()) {
$this->component->filtered = $results->pluck($this->component->primaryKey)->toArray();

Expand Down

0 comments on commit fcf575c

Please sign in to comment.