Merged in fix/bookingwidget-children-array (pull request #1738)

fix: add default childrenInRoom [] to fix Booking Widget

* fix: add default childrenInRoom [] to fix Booking Widget


Approved-by: Simon.Emanuelsson
This commit is contained in:
Arvid Norlin
2025-04-04 08:32:59 +00:00
parent 780ed6c525
commit b8a976db22

View File

@@ -97,7 +97,7 @@ export default function BookingWidgetClient({
const defaultRoomsData: BookingWidgetSchema["rooms"] = params.rooms?.map(
(room) => ({
adults: room.adults,
childrenInRoom: room.childrenInRoom,
childrenInRoom: room.childrenInRoom || [],
})
) ?? [
{