Skip to content

Commit

Permalink
Fix: handling of absent offdayList
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwoonglee committed Aug 1, 2024
1 parent 96e7bce commit 21e931a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class SearchService {
kakaoPlace.openTimeList = (basicInfo.openHour?.periodList || []).flatMap(
(period) => period.timeList,
);
kakaoPlace.offDayList = basicInfo.openHour.offdayList;
kakaoPlace.offDayList = basicInfo.openHour?.offdayList || [];

const menuPhotoMap = (kakaoPlaceMenuRaw.photoViewer?.list || []).reduce(
(map, { summary, url }) => {
Expand Down

0 comments on commit 21e931a

Please sign in to comment.