From 2adc1991bc29be90d3eec09d1989e138d91410a0 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Fri, 27 Aug 2021 20:15:43 +0200 Subject: [PATCH] Fix typescript error Signed-off-by: Tilman Vatteroth --- .../replace-components/graphviz/graphviz-frame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {