diff --git a/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx b/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx index b8376bbe7..05ec361a5 100644 --- a/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx +++ b/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx @@ -50,7 +50,7 @@ export const GraphvizFrame: React.FC = ({ code }) => { .onerror(showError) .renderDot(code) } catch (error) { - showError(error) + showError(error as string) } }) .catch(() => {