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: fixed conditions for rendering + fix title tag #371

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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
5 changes: 5 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
- ...
-->

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

### Fix

- Migliorato il comportamento del menu laterale dei contenuti quando si aggiungono file nelle cartelle al loro interno.
## Versione 8.7.10 (19/10/2023)

## Fix
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 && <></>}
pnicolli marked this conversation as resolved.
Show resolved Hide resolved
</RichTextSection>
) : (
<div className="mb-5 mt-3">
Expand Down