Skip to content

Commit

Permalink
Fix missing initial pagination data
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Nov 14, 2024
1 parent f2f2f4c commit ba40ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ private function getInitialPaginationData(): ?PaginationData
$data = $this->getPersistenceData(PersistenceContext::Pagination);
}

return $data ?? $this->config->getDefaultPaginationData();
return $data ?? $this->config->getDefaultPaginationData() ?? new PaginationData();
}

private function getInitialSortingData(): ?SortingData
Expand Down

0 comments on commit ba40ad5

Please sign in to comment.