From 03659b4256c1dea5d34fb93e99c209ce1a7df7cf Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Thu, 19 Oct 2023 11:38:33 +0200 Subject: [PATCH] fix: fixed conditions for rendering + fix title tag --- .../ItaliaTheme/View/Commons/Attachments.jsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/ItaliaTheme/View/Commons/Attachments.jsx b/src/components/ItaliaTheme/View/Commons/Attachments.jsx index 5d16a3040..4f85de512 100644 --- a/src/components/ItaliaTheme/View/Commons/Attachments.jsx +++ b/src/components/ItaliaTheme/View/Commons/Attachments.jsx @@ -104,17 +104,10 @@ const Attachments = ({ {title} - ) : ( -

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

- ) - } + title={title ? title : intl.formatMessage(messages.attachments)} > {attachments.length > 0 && attachments_view} + {searchResults?.[key]?.loading && !searchResults?.[key]?.loaded && <>}
) : (