mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -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(
|
return fetchInputSources(
|
||||||
pageNo + 1,
|
pageNo + 1,
|
||||||
inputSources.concat(data.results)
|
inputSources.concat(data.results)
|
||||||
|
|||||||
Reference in New Issue
Block a user