Merged in fix/explore-countrypages (pull request #1989)
Fix(SW-2513): Explore all hotels - country page links not showing * fix: fix issue with country page urls Approved-by: Michael Zetterberg Approved-by: Erik Tiekstra
This commit is contained in:
@@ -41,6 +41,7 @@ import {
|
||||
TrackingChannelEnum,
|
||||
type TrackingSDKPageData,
|
||||
} from "@/types/components/tracking"
|
||||
import { ApiCountry, type Country } from "@/types/enums/country"
|
||||
import type {
|
||||
GetDestinationOverviewPageData,
|
||||
GetDestinationOverviewPageRefsSchema,
|
||||
@@ -241,7 +242,8 @@ export const destinationOverviewPageQueryRouter = router({
|
||||
|
||||
const countryPages = await getCountryPageUrls(lang)
|
||||
const countryPage = countryPages.find(
|
||||
(countryPage) => countryPage.country === country
|
||||
(countryPage) =>
|
||||
ApiCountry[lang][countryPage.country as Country] === country
|
||||
)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user