feat(SW-1012): update query
This commit is contained in:
@@ -614,7 +614,7 @@ export const hotelQueryRouter = router({
|
|||||||
|
|
||||||
const bedTypes = availableRoomsInCategory
|
const bedTypes = availableRoomsInCategory
|
||||||
.map((availRoom) => {
|
.map((availRoom) => {
|
||||||
const matchingRoom = hotelData?.included
|
const matchingRoom = hotelData?.included?.rooms
|
||||||
?.find((room) =>
|
?.find((room) =>
|
||||||
room.roomTypes
|
room.roomTypes
|
||||||
.map((roomType) => roomType.code)
|
.map((roomType) => roomType.code)
|
||||||
|
|||||||
Reference in New Issue
Block a user