diff --git a/components/Lightbox/FullView.tsx b/components/Lightbox/FullView.tsx
index 983269463..73f6dde98 100644
--- a/components/Lightbox/FullView.tsx
+++ b/components/Lightbox/FullView.tsx
@@ -56,7 +56,7 @@ export default function FullView({
/>
- {image.title}
+ {image.title && {image.title}}
diff --git a/components/Lightbox/Gallery.tsx b/components/Lightbox/Gallery.tsx
index cb5181d39..0c151e420 100644
--- a/components/Lightbox/Gallery.tsx
+++ b/components/Lightbox/Gallery.tsx
@@ -58,7 +58,9 @@ export default function Gallery({
-
{mainImage.title}
+ {mainImage.title && (
+ {mainImage.title}
+ )}
diff --git a/server/routers/utils/hotels.ts b/server/routers/utils/hotels.ts
index b39f37545..37ae167cb 100644
--- a/server/routers/utils/hotels.ts
+++ b/server/routers/utils/hotels.ts
@@ -15,8 +15,8 @@ export function extractHotelImages(hotelData: Hotel): ImageItem[] {
}
if (hotelData.healthFacilities) {
- hotelData.healthFacilities.forEach((facility: any) => {
- facility.content.images.forEach((image: any) => {
+ hotelData.healthFacilities.forEach((facility) => {
+ facility.content.images.forEach((image) => {
images.push({
url: image.imageSizes.large,
alt: image.metaData.altText,