File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function mountWithPerPagePagination(): void
23
23
if (in_array (session ()->get ($ this ->tableName .'-perPage ' , $ this ->perPage ), $ this ->perPageAccepted , true )) {
24
24
$ this ->perPage = session ()->get ($ this ->tableName .'-perPage ' , $ this ->perPage );
25
25
} else {
26
- $ this ->perPage = 10 ;
26
+ $ this ->perPage = $ this -> perPageAccepted [ 0 ] ?? 10 ;
27
27
}
28
28
}
29
29
@@ -35,7 +35,7 @@ public function updatedPerPage($value): void
35
35
if (in_array (session ()->get ($ this ->tableName .'-perPage ' , $ this ->perPage ), $ this ->perPageAccepted , true )) {
36
36
session ()->put ($ this ->tableName .'-perPage ' , (int ) $ value );
37
37
} else {
38
- session ()->put ($ this ->tableName .'-perPage ' , 10 );
38
+ session ()->put ($ this ->tableName .'-perPage ' , $ this -> perPageAccepted [ 0 ] ?? 10 );
39
39
}
40
40
41
41
$ this ->resetPage ();
You can’t perform that action at this time.
0 commit comments