Reverted
This commit is contained in:
@@ -30,17 +30,17 @@ export default async function SelectRatePage({
|
|||||||
}: PageArgs<LangParams & { section: string }, SelectRateSearchParams>) {
|
}: PageArgs<LangParams & { section: string }, SelectRateSearchParams>) {
|
||||||
setLang(params.lang)
|
setLang(params.lang)
|
||||||
|
|
||||||
// const locations = await getLocations()
|
const locations = await getLocations()
|
||||||
// if (!locations || "error" in locations) {
|
if (!locations || "error" in locations) {
|
||||||
// return null
|
return null
|
||||||
// }
|
}
|
||||||
// const hotel = locations.data.find(
|
const hotel = locations.data.find(
|
||||||
// (location) =>
|
(location) =>
|
||||||
// "operaId" in location && location.operaId == searchParams.hotel
|
"operaId" in location && location.operaId == searchParams.hotel
|
||||||
// )
|
)
|
||||||
// if (!hotel) {
|
if (!hotel) {
|
||||||
// return notFound()
|
return notFound()
|
||||||
// }
|
}
|
||||||
const selectRoomParams = new URLSearchParams(searchParams)
|
const selectRoomParams = new URLSearchParams(searchParams)
|
||||||
const selectRoomParamsObject =
|
const selectRoomParamsObject =
|
||||||
getHotelReservationQueryParams(selectRoomParams)
|
getHotelReservationQueryParams(selectRoomParams)
|
||||||
|
|||||||
Reference in New Issue
Block a user