mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Check for existence of data.next before checking it
This commit is contained in:
parent
6df173ce1d
commit
34e85dea8b
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user