image null check

This commit is contained in:
Roland Schneider
2025-04-25 23:27:57 +02:00
parent 248a80727a
commit 477286fe45
9 changed files with 13 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ const FeedbackComponent = ({active,config: {customerName, feedback, customerImag
<div className="testimonial_content">
<i className="fa-solid fa-quote-left"></i>
<p className="testimonial_paragraph">{feedback}</p>
<figure><YogaImageComponent src={strapiApi.getImageUrl(imageFile.url)} alt=""
<figure><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt=""
className="img-fluid"/></figure>
<p className="testimonial_person_name">{customerName}</p>
<span>{customerDescription}</span>