fix: optional return value for paginator state

`$state->getData()->getData('GridFieldPaginator')' (line 598) returns null by default.
This commit is contained in:
Florian Thoma 2023-01-02 15:32:16 +11:00 committed by GitHub
parent 3564f98c9c
commit bb8e3b8386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
/**
* Get the current paginator state
*/
private function getGridFieldPaginatorState(): GridState_Data
private function getGridFieldPaginatorState(): ?GridState_Data
{
$state = $this->getGridField()->getState(false);
$gridStateStr = $this->getStateManager()->getStateFromRequest($this->gridField, $this->getRequest());