Michael Wang 4 жил өмнө
parent
commit
3b04f99947

+ 1 - 1
src/components/VEditor/renderJSON.js

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