Skip to content

Commit

Permalink
fix: added conditional chaining to images for uo in argomento view
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Nov 28, 2024
1 parent c2f44d8 commit 38abd77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ const PaginaArgomentoView = ({ content }) => {
</CardText>
</CardBody>
{uo_object &&
(uo_object.image_scales.image.length > 0 ||
uo_object.image_scales.preview_image.length >
(uo_object?.image_scales?.image?.length > 0 ||
uo_object?.image_scales?.preview_image?.length >
0) && (
<div className="image-container me-3">
<Image
Expand Down

0 comments on commit 38abd77

Please sign in to comment.