Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
3b04f99947
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/VEditor/renderJSON.js

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

@@ -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));