From 522774bee6dafd21dc09beef2fbc5b70936b7944 Mon Sep 17 00:00:00 2001 From: sabrina-bongiovanni <116291154+sabrina-bongiovanni@users.noreply.github.com> Date: Fri, 27 Oct 2023 12:16:34 +0200 Subject: [PATCH] fix: fixed conditions for rendering + fix title tag (#371) * fix: fixed conditions for rendering + fix title tag * chore: release.md * chore: added fix explanation --------- Co-authored-by: Piero Nicolli --- RELEASE.md | 3 ++- .../ItaliaTheme/View/Commons/Attachments.jsx | 14 +++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index d24f9f53e..bafc91c74 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -41,7 +41,7 @@ - ... --> -## Versione 8.7.11 (dd/mm/yyyy) +## Versione X.X.X (dd/mm/yyyy) ### Migliorie @@ -55,6 +55,7 @@ - Migliorata icona del menĂ¹ mobile - Sistemata dimensione logo e bottone di ricerca su mobile +- Migliorato il comportamento del menu laterale dei contenuti quando si aggiungono file nelle cartelle al loro interno ## Versione 8.7.10 (19/10/2023) diff --git a/src/components/ItaliaTheme/View/Commons/Attachments.jsx b/src/components/ItaliaTheme/View/Commons/Attachments.jsx index 5d16a3040..2c3adab08 100644 --- a/src/components/ItaliaTheme/View/Commons/Attachments.jsx +++ b/src/components/ItaliaTheme/View/Commons/Attachments.jsx @@ -104,17 +104,13 @@ const Attachments = ({ {title} - ) : ( -

- {intl.formatMessage(messages.attachments)} -

- ) - } + title={title ? title : intl.formatMessage(messages.attachments)} > {attachments.length > 0 && attachments_view} + {/** aggiunte conditions per attendere il render del componente mentre + * i risultati della query stanno ancora caricando + */} + {searchResults?.[key]?.loading && !searchResults?.[key]?.loaded && <>}
) : (