Skip to content

Commit

Permalink
Get pagesize from url if Turbo is not yet loaded (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Dec 20, 2024
1 parent 3f97927 commit 63b21b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/Listing/Listing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
data: () => ({
loaded: false,
attributes: useAttributes(),
pageSize: Turbo.navigator.location.searchParams.get('pageSize') || config.grid_per_page,
pageSize: (Turbo?.navigator?.location?.searchParams || new URLSearchParams(window.location.search)).get('pageSize') || config.grid_per_page,
}),
render() {
Expand Down

0 comments on commit 63b21b1

Please sign in to comment.