Skip to content

Commit 6792b0c

Browse files
committed
Fix simple page generator
1 parent 8e05e19 commit 6792b0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Model/SimplePaginatedList.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ protected function fetchData()
4747

4848
protected function onData($data)
4949
{
50+
$before = count($this->resources);
5051
parent::onData($data);
51-
$this->offset = count($this->resources);
52+
$after = count($this->resources);
53+
$this->offset += $after - $before;
5254
}
5355

5456
/**

0 commit comments

Comments
 (0)