mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: update containerRef type to remove null from HTMLDivElement reference
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user