Merged in fix/metadata-schema (pull request #2893)
fix: Updated metadata schema to handle transformed hotel data * fix: Updated metadata schema to handle transformed hotel data Approved-by: Linus Flood
This commit is contained in:
committed by
Linus Flood
parent
57315baf97
commit
4f151b143e
@@ -46,7 +46,7 @@ async function getSubpageTitle(
|
||||
}
|
||||
|
||||
switch (subpageUrl) {
|
||||
case additionalHotelData.hotelParking.nameInUrl:
|
||||
case additionalHotelData.hotelParking?.nameInUrl:
|
||||
const parkingTitleLong = intl.formatMessage(
|
||||
{
|
||||
defaultMessage:
|
||||
@@ -63,7 +63,7 @@ async function getSubpageTitle(
|
||||
return parkingTitleShort
|
||||
}
|
||||
return parkingTitleLong
|
||||
case additionalHotelData.healthAndFitness.nameInUrl:
|
||||
case additionalHotelData.healthAndFitness?.nameInUrl:
|
||||
const wellnessTitleLong = intl.formatMessage(
|
||||
{
|
||||
defaultMessage:
|
||||
@@ -80,7 +80,7 @@ async function getSubpageTitle(
|
||||
return wellnessTitleShort
|
||||
}
|
||||
return wellnessTitleLong
|
||||
case additionalHotelData.hotelSpecialNeeds.nameInUrl:
|
||||
case additionalHotelData.hotelSpecialNeeds?.nameInUrl:
|
||||
const accessibilityTitleLong = intl.formatMessage(
|
||||
{
|
||||
defaultMessage:
|
||||
@@ -97,7 +97,7 @@ async function getSubpageTitle(
|
||||
return accessibilityTitleShort
|
||||
}
|
||||
return accessibilityTitleLong
|
||||
case additionalHotelData.meetingRooms.nameInUrl:
|
||||
case additionalHotelData.meetingRooms?.nameInUrl:
|
||||
const meetingsTitleLong = intl.formatMessage(
|
||||
{
|
||||
defaultMessage:
|
||||
|
||||
Reference in New Issue
Block a user