diff --git a/projects/app/src/components/Markdown/codeBlock/StructureRender/index.tsx b/projects/app/src/components/Markdown/codeBlock/StructureRender/index.tsx index a0411d9e1..b5fb28b39 100644 --- a/projects/app/src/components/Markdown/codeBlock/StructureRender/index.tsx +++ b/projects/app/src/components/Markdown/codeBlock/StructureRender/index.tsx @@ -86,6 +86,8 @@ const StructureRender = ({ code }: { code: string }) => { <> {jsonObjList.map((jsonObj, index) => { const { type, content } = jsonObj; + if (type === 'DIVIDER') return ; + if (!content) return ''; if (type === 'TABLE') return
; if (type === 'INDICATOR') return ; @@ -93,7 +95,6 @@ const StructureRender = ({ code }: { code: string }) => { if (type === 'ERROR_TIPS') return ; if (type === 'WARNING_TIPS') return ; - if (type === 'DIVIDER') return ; if (type === 'TEXTBLOCK') return ; if (type === 'CHART') return (