From baf405593837ad26e587b6bfd2077cbf8ace3c71 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Wed, 11 Dec 2024 14:43:13 +0100 Subject: [PATCH] feat(SW-1012): update query --- server/routers/hotels/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)