@@ -1,7 +1,7 @@
// const _text_styles_ = ["bold", "underline", "italic", "sup", "sub"];
export function renderRichText(body, container) {
- let sections = body.sections || [];
+ let sections = body?.sections || [];
let nodes = [];
sections.forEach((section) => {
nodes.push(renderSection(section));