diff --git a/src/common/constants/uiControls.constants.ts b/src/common/constants/uiControls.constants.ts index 43fbd639..cc887555 100644 --- a/src/common/constants/uiControls.constants.ts +++ b/src/common/constants/uiControls.constants.ts @@ -34,6 +34,7 @@ export const UI_DROPDOWNS_LIST = [AdvancedFieldType.dropdown, AdvancedFieldType. export const NOT_PREVIEWABLE_TYPES = [ AdvancedFieldType.profile, + AdvancedFieldType.block, AdvancedFieldType.hidden, AdvancedFieldType.dropdownOption, AdvancedFieldType.complex, diff --git a/src/components/FullDisplay/PreviewContent.tsx b/src/components/FullDisplay/PreviewContent.tsx index b3cad58d..0c36fa57 100644 --- a/src/components/FullDisplay/PreviewContent.tsx +++ b/src/components/FullDisplay/PreviewContent.tsx @@ -15,7 +15,6 @@ export const PreviewContent = () => { return previewContent.map(({ id, base, userValues, initKey, title, entities }) => { const resourceType = entities?.map(e => RESOURCE_TEMPLATE_IDS[e])?.[0]; - const resourceTypeWithFallback = resourceType ?? '-'; const handleButtonClick = () => setPreviewContent(previewContent.filter(entry => entry.id !== id)); return ( @@ -31,7 +30,6 @@ export const PreviewContent = () => {
{title} - {resourceTypeWithFallback}