Skip to content

Commit 33d2f4f

Browse files
committed
fix
1 parent 25c2c15 commit 33d2f4f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { SiteProperty } from 'volto-site-settings';
55
import { getSiteProperty } from 'design-comuni-plone-theme/helpers';
66
import { richTextHasContent } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
77

8-
const isVoltoSchemaorgInstalled = config.settings.addonsInfo.some(
9-
(addon) => addon.name === '@redturtle/volto-schemaorg',
10-
);
11-
128
const fieldDataToPlainText = (field) => {
139
return field.blocks_layout.items.reduce((accumulator, item, index) => {
1410
if (field.blocks[item]['@type'] === 'text') {
@@ -26,6 +22,10 @@ const fieldDataToPlainText = (field) => {
2622
const ServizioMetatag = ({ content }) => {
2723
const intl = useIntl();
2824

25+
const isVoltoSchemaorgInstalled = config.settings.addonsInfo?.some(
26+
(addon) => addon.name === '@redturtle/volto-schemaorg',
27+
);
28+
2929
if (isVoltoSchemaorgInstalled) {
3030
return null;
3131
}

0 commit comments

Comments
 (0)