From 5a5102a3a2dc233f6483bf8992660845b899a171 Mon Sep 17 00:00:00 2001 From: Wagner Trezub Date: Wed, 4 Sep 2024 15:51:56 +0200 Subject: [PATCH] fix: code refactoring to use just one caption for all options --- .../ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx b/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx index 722b63134..49bc829d6 100644 --- a/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx +++ b/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx @@ -111,9 +111,6 @@ const ViewBlock = ({ {...embedSettings} /> )} - {showVideoCaption && ( -

{data.title}

- )} ) : ( <> @@ -146,13 +143,13 @@ const ViewBlock = ({ ) : (
)} - {showVideoCaption && ( -

{data.title}

- )} )} )} + {showVideoCaption && ( +

{data.title}

+ )}
) : null;