feat(SW-1012): add length check for restaurant images

This commit is contained in:
Fredrik Thorsson
2024-12-16 09:25:43 +01:00
parent 0c1a4896d0
commit 0344d8f360

View File

@@ -31,6 +31,7 @@ export default async function RestaurantBarItem({
<Title level="h3">{name}</Title> <Title level="h3">{name}</Title>
</Subtitle> </Subtitle>
</div> </div>
{visibleImages.length ? (
<div className={styles.imageWrapper}> <div className={styles.imageWrapper}>
{visibleImages.map(({ metaData, imageSizes }) => ( {visibleImages.map(({ metaData, imageSizes }) => (
<Image <Image
@@ -43,6 +44,7 @@ export default async function RestaurantBarItem({
/> />
))} ))}
</div> </div>
) : null}
{openingDetails.length ? ( {openingDetails.length ? (
<div className={styles.content}> <div className={styles.content}>
<Subtitle type="two" asChild> <Subtitle type="two" asChild>