diff --git a/src/main/java/sopt/org/umbbaServer/domain/qna/service/QnAService.java b/src/main/java/sopt/org/umbbaServer/domain/qna/service/QnAService.java index 6626390a..842478f6 100644 --- a/src/main/java/sopt/org/umbbaServer/domain/qna/service/QnAService.java +++ b/src/main/java/sopt/org/umbbaServer/domain/qna/service/QnAService.java @@ -177,8 +177,10 @@ public void filterAllQuestion(Long userId, List onboardingAnswerStringLi } } - // 선택 질문에 따라 질문 리스트가 커스텀됨 - customQuestion(childList, parentList, parentchild.getQnaList()); + if (childList.size() >= 5 && parentList.size() >= 5) { + // 선택 질문에 따라 질문 리스트가 커스텀됨 + customQuestion(childList, parentList, parentchild.getQnaList()); + } log.info("선택된 질문 리스트"); List forLogging= parentchild.getQnaList();