Skip to content

Commit

Permalink
fix: fixed conditions for rendering + fix title tag (#371)
Browse files Browse the repository at this point in the history
* fix: fixed conditions for rendering + fix title tag

* chore: release.md

* chore: added fix explanation

---------

Co-authored-by: Piero Nicolli <[email protected]>
  • Loading branch information
sabrina-bongiovanni and pnicolli authored Oct 27, 2023
1 parent 60276ec commit 522774b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- ...
-->

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

### Migliorie

Expand All @@ -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)

Expand Down
14 changes: 5 additions & 9 deletions src/components/ItaliaTheme/View/Commons/Attachments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,13 @@ const Attachments = ({
<RichTextSection
tag_id={article_id}
className="it-page-section mb-5"
title={
title ? (
<h2 id={`header-${article_id}`}>{title}</h2>
) : (
<h2 id={`header-${article_id}`}>
{intl.formatMessage(messages.attachments)}
</h2>
)
}
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 && <></>}
</RichTextSection>
) : (
<div className="mb-5 mt-3">
Expand Down

0 comments on commit 522774b

Please sign in to comment.