feat(SW-251): check for undefined
This commit is contained in:
@@ -28,6 +28,8 @@ export default async function SelectHotelPage({
|
||||
|
||||
if (!getHotelFitlers) return null
|
||||
|
||||
const { filters } = getHotelFitlers
|
||||
|
||||
const getAvailableHotels = await serverClient().hotel.availability.get({
|
||||
cityId: "8ec4bba3-1c38-4606-82d1-bbe3f6738e54",
|
||||
roomStayStartDate: "2024-11-02",
|
||||
@@ -54,7 +56,7 @@ export default async function SelectHotelPage({
|
||||
{intl.formatMessage({ id: "Show map" })}
|
||||
<ChevronRightIcon color="burgundy" />
|
||||
</Link>
|
||||
{/* <HotelFilter filters={hotelFilters} /> */}
|
||||
<HotelFilter filters={filters} />
|
||||
</section>
|
||||
<section className={styles.hotelCards}>
|
||||
{availability.length ? (
|
||||
|
||||
Reference in New Issue
Block a user