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:
Erik Tiekstra
2025-02-06 09:19:59 +00:00
parent d0e2bd5c8d
commit 8ecaac4b52
4 changed files with 64 additions and 60 deletions

View File

@@ -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>