diff --git a/apps/dashboard/src/main/java/com/akto/action/ApiCollectionsAction.java b/apps/dashboard/src/main/java/com/akto/action/ApiCollectionsAction.java index efb90f2876..1cf5879057 100644 --- a/apps/dashboard/src/main/java/com/akto/action/ApiCollectionsAction.java +++ b/apps/dashboard/src/main/java/com/akto/action/ApiCollectionsAction.java @@ -93,16 +93,17 @@ public List fillApiCollectionsUrlCount(List apiCol if(apiCollectionWithCond.getConditions() != null && apiCollectionWithCond.getConditions().get(0) != null){ if(apiCollectionWithCond.getConditions().get(0).getType().equals(TestingEndpoints.Type.CUSTOM)){ CustomTestingEndpoints testingEndpoints = (CustomTestingEndpoints) apiCollectionWithCond.getConditions().get(0); - if(testingEndpoints.getApisList() != null && !testingEndpoints.getApisList().isEmpty()){ + if (testingEndpoints.getApisList() != null && !testingEndpoints.getApisList().isEmpty()) { conditionsCount = testingEndpoints.getApisList().size(); + loggerMaker.infoAndAddToDb("fillApiCollectionsUrlCount collection: " + apiCollectionWithCond.getDisplayName() + " count: " + conditionsCount); } } } } - if(conditionsCount != 0){ - count = conditionsCount; - }else if (count == null) { + if (conditionsCount != 0) { + count = conditionsCount; + } else if (count == null) { count = fallbackCount; } apiCollection.setUrlsCount(count);