Merged in fix/remove-cities-without-hotels (pull request #1493)

fix: remove cities that don't have a city page

* fix: remove cities that don't have a city page


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-03-07 07:00:35 +00:00
parent 4db75057f2
commit 7ce2ee2922
2 changed files with 21 additions and 7 deletions
@@ -5,12 +5,14 @@ export type DestinationsData = {
cities: {
id: string
name: string
hotelIds: string[] | null
hotelIds: string[]
hotelCount: number
url: string | undefined
url: string
}[]
}[]
export type Cities = DestinationsData[number]["cities"]
export type HotelsSectionProps = {
destinations: DestinationsData
}
@@ -23,5 +25,5 @@ export type DestinationProps = {
country: string
countryUrl: string | undefined
numberOfHotels: number
cities: DestinationsData[number]["cities"]
cities: Cities
}