Skip to content

Commit

Permalink
fix: fixed conditions for rendering + fix title tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Oct 19, 2023
1 parent 80bdcd1 commit 03659b4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 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,10 @@ 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}
{searchResults?.[key]?.loading && !searchResults?.[key]?.loaded && <></>}
</RichTextSection>
) : (
<div className="mb-5 mt-3">
Expand Down

0 comments on commit 03659b4

Please sign in to comment.