mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 15:53:36 -05:00
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