diff --git a/packages/core/client/src/schema-component/antd/markdown/util.ts b/packages/core/client/src/schema-component/antd/markdown/util.ts index e1db7e704..702fdb124 100644 --- a/packages/core/client/src/schema-component/antd/markdown/util.ts +++ b/packages/core/client/src/schema-component/antd/markdown/util.ts @@ -3,6 +3,9 @@ import './highlight-theme/default.less'; import './highlight-theme/table.less'; export async function parseMarkdown(text: string) { + if (!text) { + return text; + } const m = await import('./md'); return m.default.render(text); }