From a2cbe4e24183b59302050188c09c50311463b9a2 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Tue, 27 Jan 2026 08:43:00 +0000 Subject: [PATCH] fix: update containerRef type to remove null from HTMLDivElement reference --- Common/UI/Components/Markdown.tsx/MarkdownViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/UI/Components/Markdown.tsx/MarkdownViewer.tsx b/Common/UI/Components/Markdown.tsx/MarkdownViewer.tsx index 7fe3235338..63a9cfe7ff 100644 --- a/Common/UI/Components/Markdown.tsx/MarkdownViewer.tsx +++ b/Common/UI/Components/Markdown.tsx/MarkdownViewer.tsx @@ -35,7 +35,7 @@ const MermaidDiagram: FunctionComponent<{ chart: string }> = ({ }: { chart: string; }) => { - const containerRef: React.RefObject = + const containerRef: React.RefObject = useRef(null); useEffect(() => {