feat(BOOK-463): Fetching hotel filters from CMS and using these inside the destination pages and select hotel page
* feat(BOOK-463): Fetching hotel filters from CMS and using these inside the destination pages * fix(BOOK-698): fetch hotel filters from CMS on select hotel page Approved-by: Bianca Widstam
This commit is contained in:
@@ -9,7 +9,7 @@ import { env } from "../../env/server"
|
||||
import { BookingFlowConfig } from "../bookingFlowConfig/bookingFlowConfig"
|
||||
import { MapContainer } from "../components/MapContainer"
|
||||
import {
|
||||
getFiltersFromHotels,
|
||||
fetchHotelFiltersAndMapToCategorizedFilters,
|
||||
getHotels,
|
||||
} from "../components/SelectHotel/helpers"
|
||||
import {
|
||||
@@ -109,7 +109,11 @@ export async function SelectHotelMapPage({
|
||||
config,
|
||||
})
|
||||
|
||||
const filterList = getFiltersFromHotels(hotels, isBookingCodeRateAvailable)
|
||||
const filterList = await fetchHotelFiltersAndMapToCategorizedFilters(
|
||||
hotels,
|
||||
isBookingCodeRateAvailable,
|
||||
lang
|
||||
)
|
||||
|
||||
const suspenseKey = stringify(searchParams)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user