Skip to content

Commit

Permalink
Fix: handling of absent menulist
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwoonglee committed Aug 1, 2024
1 parent fff20c4 commit ef0d80a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ export class SearchService {
},
{},
);
kakaoPlace.menuList = kakaoPlaceRaw.menuInfo.menuList.map(

kakaoPlace.menuList = (kakaoPlaceRaw.menuInfo?.menuList || []).map(
({ menu, price }) => ({ menu, price, photo: menuPhotoMap[menu] || '' }),
);

Expand Down

0 comments on commit ef0d80a

Please sign in to comment.