diff --git a/src/view/hocs/withMermaid/index.tsx b/src/view/hocs/withMermaid/index.tsx index 2500a9547..fee01e34f 100644 --- a/src/view/hocs/withMermaid/index.tsx +++ b/src/view/hocs/withMermaid/index.tsx @@ -28,7 +28,7 @@ export function withMermaid(opts: WithMermaidOptions) { useMermaidRuntime(meta, opts.runtime); useEffect(() => { - renderMermaid(mermaidConfig); + renderMermaid(mermaidConfig).catch(() => {}); }, [html, mermaidConfig, renderMermaid]); return ;