Merged in fix/hotel-faq (pull request #1265)
fix: setting faq section as nullable from CS as CS returns null after import * fix: setting faq section as nullable from CS as CS returns null after import Approved-by: Fredrik Thorsson
This commit is contained in:
@@ -150,7 +150,7 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
||||
<TabNavigation
|
||||
restaurantTitle={getRestaurantHeading(detailedFacilities)}
|
||||
hasActivities={activitiesCards.length > 0}
|
||||
hasFAQ={!!faq.accordions.length}
|
||||
hasFAQ={!!faq?.accordions.length}
|
||||
tabValues={tabValues}
|
||||
/>
|
||||
|
||||
@@ -187,7 +187,7 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
||||
amenities={detailedFacilities}
|
||||
healthFacilities={healthFacilities}
|
||||
/>
|
||||
{faq.accordions.length > 0 && (
|
||||
{faq && faq.accordions.length > 0 && (
|
||||
<AccordionSection accordion={faq.accordions} title={faq.title} />
|
||||
)}
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user