From 7aa26ea587ff3a903495b4412e7efa612cabd6b5 Mon Sep 17 00:00:00 2001 From: Deepturn <33342819+Deepturn@users.noreply.github.com> Date: Tue, 14 Oct 2025 20:30:38 +0800 Subject: [PATCH] Update index.tsx (#5764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix:修复打包报错 --- .../components/Markdown/codeBlock/StructureRender/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (