diff --git a/src/@episerver/forms-react/src/components/elements/ParagraphTextElementBlock.tsx b/src/@episerver/forms-react/src/components/elements/ParagraphTextElementBlock.tsx index 881535f..ebbdcdf 100644 --- a/src/@episerver/forms-react/src/components/elements/ParagraphTextElementBlock.tsx +++ b/src/@episerver/forms-react/src/components/elements/ParagraphTextElementBlock.tsx @@ -32,8 +32,8 @@ export const ParagraphTextElementBlock = (props: ParagraphTextElementBlockProps) } } - let text = element.properties.paragraphText - const placeHolders = extractTextsWithFormat(element.properties.paragraphText) + let text = element.properties.paragraphText ?? ""; + const placeHolders = extractTextsWithFormat(text) if (doReplaceText) { data.forEach(element => {