Skip to content

Commit e70f92e

Browse files
authored
Update WithPerPagePagination.php
1 parent 2e0b415 commit e70f92e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/WithPerPagePagination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function updatedPerPage($value): void
3535
if (in_array(session()->get($this->tableName.'-perPage', $this->perPage), $this->perPageAccepted, true)) {
3636
session()->put($this->tableName.'-perPage', (int) $value);
3737
} else {
38-
session()->put($this->tableName.'-perPage', 10);
38+
session()->put($this->tableName.'-perPage', $this->perPageAccepted[0] ?? 10);
3939
}
4040

4141
$this->resetPage();

0 commit comments

Comments
 (0)