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 27, 2024
1 parent 3b72f43 commit 9279fea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@
- ...
-->

## Versione X.X.X (dd/mm/yyyy)

### Migliorie

- ...

### Novità

- ...

### Fix

- Aggiustato il collegamento alla UO nella pagina Argomento.

## Versione 11.25.0 (26/11/2024)

### Migliorie
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ const PaginaArgomentoView = ({ content }) => {
const uo_object = u;
let alt = u.title;
if (
uo_object.image_scales.preview_image.length > 0 &&
uo_object?.image_scales?.preview_image?.length > 0 &&
uo_object?.preview_caption
) {
alt = uo_object.preview_caption;
alt = uo_object?.preview_caption;
} else if (
uo_object.image_scales.image.length > 0 &&
uo_object?.image_scales?.image?.length > 0 &&
uo_object?.image_caption
) {
alt = uo_object.image_caption;
Expand Down

0 comments on commit 9279fea

Please sign in to comment.