diff --git a/frontend/src/components/MermaidRenderer.tsx b/frontend/src/components/MermaidRenderer.tsx index 41291537..1d3314e2 100644 --- a/frontend/src/components/MermaidRenderer.tsx +++ b/frontend/src/components/MermaidRenderer.tsx @@ -16,7 +16,9 @@ const MermaidRenderer: React.FC = ({ isLoading, }) => { const [isDarkTheme] = useDarkTheme(); - const diagramId = useRef(`mermaid-${crypto.randomUUID()}`); + const diagramId = useRef( + `mermaid-${Date.now()}-${Math.random().toString(36).substring(2)}`, + ); const status = useSelector(selectStatus); const [error, setError] = useState(null); const [showCode, setShowCode] = useState(false);