Skip to content

Commit

Permalink
Fix error when Richtext has no data
Browse files Browse the repository at this point in the history
Fixes: AFORM-3854
  • Loading branch information
hungoptimizely committed Jan 4, 2024
1 parent 9a16b66 commit 21cf29e
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 21cf29e

Please sign in to comment.