diff --git a/app/controllers/creditpd.controller.js b/app/controllers/creditpd.controller.js index 013e44d..abd2314 100644 --- a/app/controllers/creditpd.controller.js +++ b/app/controllers/creditpd.controller.js @@ -59,7 +59,7 @@ exports.PullCreditPdData = async (req, res) => { temp_array.length = 0 ; for (var [ObjectKey, ObjectValue] of Object.entries(OverallValue)) { - if (Array.isArray(OverallValue[ObjectKey]) == true) + if (Array.isArray(OverallValue[ObjectKey]) == true && OverallValue[ObjectKey].length != 0) { temp_array = await Credit_PdHelper.ARRAY( OverallValue[ObjectKey] , GenInfoObj , OverallKey ) }