Skip to content

Commit

Permalink
fix: added conditional chaining to images for uo in argomento view (#823
Browse files Browse the repository at this point in the history
)

* fix: added conditional chaining to images for uo in argomento view

* fix: removed additional conditional chaining
  • Loading branch information
sabrina-bongiovanni authored Nov 28, 2024
1 parent 10ef0e8 commit 27b1545
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 27b1545

Please sign in to comment.