Skip to content

Commit 80ab2ea

Browse files
author
Marius
committed
fix cursor
1 parent 99d7155 commit 80ab2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/ResourceControllerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ protected function getJsonResponse(
230230
): JsonResponse {
231231
return GeneralHelper::app(JsonResponse::class, [
232232
'data' => \array_merge($paginator instanceof CursorPaginator ? [
233-
'cursor' => $paginator->nextCursor()->encode(),
233+
'cursor' => $paginator->nextCursor()?->encode(),
234234
] : [], [
235235
'has_more_pages' => $paginator->hasMorePages(),
236236
], $appends, GeneralHelper::filterDataByKeys(

0 commit comments

Comments
 (0)