Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@

### Migliorie

- ...

### Novità

- ...

### Fix

- Aggiustato il collegamento alla UO nella pagina Argomento.

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

### Migliorie

- Rimossa dal CT Evento la data di scadenza del CT per evitare confusione con le date effettive dell'evento
- Durante la ricerca nel sito dalla popup che compare cliccando sul bottone 'Cerca' nella testa del sito, viene mostrato un loader in overlay durante il caricamento della pagina dei risultati perchè questo potrebbe richiedere un po' di tempo. Prima di questa modifica non era chiaro se la ricerca fosse iniziata.
- Nel CT Evento per una rassegna, se gli eventi figli hanno una ricorrenza o un periodo di date impostato, il range di date verrà mostrato nella card all'interno dell'evento padre.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ 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;
alt = uo_object?.image_caption;
}

return (
Expand Down