diff --git a/src/Components/SVG/SVG.tsx b/src/Components/SVG/SVG.tsx index 7af91b1..0cc6311 100644 --- a/src/Components/SVG/SVG.tsx +++ b/src/Components/SVG/SVG.tsx @@ -124,8 +124,10 @@ export function SVG(props: ISVGProps): JSX.Element { ); } -function UseFitOnce(svgViewer: React.RefObject) { + +function UseFitOnce(svgViewer: React.RefObject): void { React.useEffect(() => { svgViewer?.current?.fitToViewer(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); }