From 9d8564f25f96b0877b1a4295b1586eee1de27c38 Mon Sep 17 00:00:00 2001 From: Cihan Andac Date: Tue, 6 Feb 2024 14:58:44 +0100 Subject: [PATCH] Fix the rendering of the caption when there is no data --- .../components/manage/Blocks/Image/View.jsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/customizations/components/manage/Blocks/Image/View.jsx b/frontend/src/customizations/components/manage/Blocks/Image/View.jsx index 7a08cb76..9ac752de 100644 --- a/frontend/src/customizations/components/manage/Blocks/Image/View.jsx +++ b/frontend/src/customizations/components/manage/Blocks/Image/View.jsx @@ -77,11 +77,15 @@ export const View = ({ data, detached }) => { > {image} -

+ {data.caption?.data ? ( +

+ ) : ( + '' + )} ); } else {