From 34e85dea8b7dfcbb4f8ef12d655b9bd75adb882d Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 22 Jul 2020 13:47:19 -0400 Subject: [PATCH] Check for existence of data.next before checking it --- awx/ui_next/src/api/models/Credentials.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/api/models/Credentials.js b/awx/ui_next/src/api/models/Credentials.js index 340a8b47ee..1560357bd1 100644 --- a/awx/ui_next/src/api/models/Credentials.js +++ b/awx/ui_next/src/api/models/Credentials.js @@ -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)