diff --git a/server/routers/hotels/query.ts b/server/routers/hotels/query.ts index ff3964db1..739ad27d0 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -614,7 +614,7 @@ export const hotelQueryRouter = router({ const bedTypes = availableRoomsInCategory .map((availRoom) => { - const matchingRoom = hotelData?.included + const matchingRoom = hotelData?.included?.rooms ?.find((room) => room.roomTypes .map((roomType) => roomType.code)