From 77b4ba0f77a766d1e64eb6302e6c2ed74f1b5395 Mon Sep 17 00:00:00 2001 From: sanghee0820 Date: Fri, 15 Nov 2024 14:36:59 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EB=B0=98=ED=99=98=EA=B0=92=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../team7/inplace/place/application/dto/PlaceDetailInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java b/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java index 5e6fd120..264d0a90 100644 --- a/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java +++ b/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java @@ -69,7 +69,8 @@ public static MenuInfos of( LocalDateTime menuUpdatedAt) { menuImgUrls = menuImgUrls.stream() .filter(url -> url != null && url.isBlank()) - .toList(); + .toList() + .isEmpty() ? null : menuImgUrls; List menuList = menus.stream() .map(menu -> new MenuInfo(menu.getPrice(), menu.isRecommend(), menu.getMenuName(), menu.getMenuImgUrl().trim(), menu.getDescription()))