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:
@@ -97,7 +97,7 @@ export default function BookingWidgetClient({
|
|||||||
const defaultRoomsData: BookingWidgetSchema["rooms"] = params.rooms?.map(
|
const defaultRoomsData: BookingWidgetSchema["rooms"] = params.rooms?.map(
|
||||||
(room) => ({
|
(room) => ({
|
||||||
adults: room.adults,
|
adults: room.adults,
|
||||||
childrenInRoom: room.childrenInRoom,
|
childrenInRoom: room.childrenInRoom || [],
|
||||||
})
|
})
|
||||||
) ?? [
|
) ?? [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user