fix: update containerRef type to remove null from HTMLDivElement reference

This commit is contained in:
Nawaz Dhandala
2026-01-27 08:43:00 +00:00
parent 214ac678d3
commit a2cbe4e241

View File

@@ -35,7 +35,7 @@ const MermaidDiagram: FunctionComponent<{ chart: string }> = ({
}: {
chart: string;
}) => {
const containerRef: React.RefObject<HTMLDivElement | null> =
const containerRef: React.RefObject<HTMLDivElement> =
useRef<HTMLDivElement>(null);
useEffect(() => {