diff options
| -rw-r--r-- | packages/docs/app/components/mermaid.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/docs/app/components/mermaid.tsx b/packages/docs/app/components/mermaid.tsx index 85ab342..d408aad 100644 --- a/packages/docs/app/components/mermaid.tsx +++ b/packages/docs/app/components/mermaid.tsx @@ -13,11 +13,12 @@ export function Mermaid({ chart }: { chart: string }) { useEffect(() => { if (ref.current) { + ref.current.innerHTML = chart; mermaid.run({ nodes: [ref.current], }); } - }, []); + }, [chart]); return ( <div className="not-prose my-6"> |