Fix for infinity loading if next page is empty (#1465)
This commit is contained in:
parent
b808843efe
commit
569808f7a4
@ -133,7 +133,7 @@ class NodeIterator(Iterator[T]):
|
||||
return item
|
||||
if self._data['page_info']['has_next_page']:
|
||||
query_response = self._query(self._data['page_info']['end_cursor'])
|
||||
if self._data['edges'] != query_response['edges']:
|
||||
if self._data['edges'] != query_response['edges'] and len(query_response['edges']) > 0:
|
||||
page_index, data = self._page_index, self._data
|
||||
try:
|
||||
self._page_index = 0
|
||||
|
Loading…
Reference in New Issue
Block a user