diff --git a/src/Components/SVG/SVG.tsx b/src/Components/SVG/SVG.tsx index ecbed84..317c850 100644 --- a/src/Components/SVG/SVG.tsx +++ b/src/Components/SVG/SVG.tsx @@ -56,7 +56,7 @@ export function SVG(props: ISVGProps): JSX.Element { }); const [tool, setTool] = React.useState(TOOL_PAN); const [value, setValue] = React.useState({} as Value); - const [scale, setScale] = React.useState(value.a); + const [scale, setScale] = React.useState(value.a ?? 1); const svgViewer = React.useRef(null);