From 696fce3c9e7a3d6b274ad8f5ba5f586f4e61d5cf Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Mon, 29 Jan 2024 15:50:08 +0100 Subject: [PATCH] fix: image size in attachments --- src/components/ItaliaTheme/View/Commons/Attachment.jsx | 6 ++++-- src/components/ItaliaTheme/View/Commons/Attachments.jsx | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/ItaliaTheme/View/Commons/Attachment.jsx b/src/components/ItaliaTheme/View/Commons/Attachment.jsx index 65f883e8f..4f98a8c5b 100644 --- a/src/components/ItaliaTheme/View/Commons/Attachment.jsx +++ b/src/components/ItaliaTheme/View/Commons/Attachment.jsx @@ -13,12 +13,14 @@ const messages = defineMessages({ }); const Attachment = ({ title, description, download_url, item = {} }) => { - console.log(item); const intl = useIntl(); let _item = { ...item }; if (item['@type'] === 'File') { _item = item.file; } + if (item['@type'] === 'Image') { + _item = item.image; + } return ( {