mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
Check for existence of data.next before checking it
This commit is contained in:
@@ -35,7 +35,7 @@ class Credentials extends Base {
|
||||
},
|
||||
}
|
||||
);
|
||||
if (data.next && requestCounter <= maxRequests) {
|
||||
if (data?.next && requestCounter <= maxRequests) {
|
||||
return fetchInputSources(
|
||||
pageNo + 1,
|
||||
inputSources.concat(data.results)
|
||||
|
||||
Reference in New Issue
Block a user