Skip to content

Commit

Permalink
Fix richtext has error when having no data
Browse files Browse the repository at this point in the history
Fixes: AFORM-3854
  • Loading branch information
hungoptimizely committed Jan 5, 2024
1 parent 4ab5fdf commit af4f4b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit af4f4b2

Please sign in to comment.