feat(SW-251): check for undefined

This commit is contained in:
Fredrik Thorsson
2024-09-05 13:25:46 +02:00
parent 6089af764a
commit 024a095dc6
4 changed files with 16 additions and 20 deletions

View File

@@ -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 ? (