From 25dfbea65daa311c796718512638249a0e9f45ab Mon Sep 17 00:00:00 2001 From: Wagner Trezub Date: Wed, 6 Mar 2024 15:12:39 +0100 Subject: [PATCH] fix: changed checkRedraftHasContent --- src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx b/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx index 129f4c7f3..6d53b14fe 100644 --- a/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx +++ b/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx @@ -10,7 +10,7 @@ import ViewBlock from './Block/ViewBlock'; import { Container, Row, Col } from 'design-react-kit/dist/design-react-kit'; import { flattenToAppURL, addAppURL } from '@plone/volto/helpers'; import { UniversalLink } from '@plone/volto/components'; -import { richTextHasContent } from 'design-comuni-plone-theme/components/ItaliaTheme/View'; +import { checkRedraftHasContent } from 'design-comuni-plone-theme/helpers'; import config from '@plone/volto/registry'; import cx from 'classnames'; @@ -47,7 +47,7 @@ const AccordionView = ({ data, block }) => { )}
- {richTextHasContent(data.title) && ( + {checkRedraftHasContent(data.title) && (
{redraft( data.title, @@ -56,7 +56,7 @@ const AccordionView = ({ data, block }) => { )}
)} - {richTextHasContent(data.description) && ( + {checkRedraftHasContent(data.description) && (
{redraft( data.description,