From 10b88ede0f1db31cb0a1220e3ef19e951bd51db3 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 4 Sep 2024 16:30:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=EB=A5=98=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Roof2.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Roof2.jsx b/src/components/Roof2.jsx index 70deec93..f77f68c0 100644 --- a/src/components/Roof2.jsx +++ b/src/components/Roof2.jsx @@ -594,13 +594,12 @@ export default function Roof2(props) { } const changeLength = (e) => { - setScale(e) const polygon = canvas?.getActiveObject() - if (polygon.type !== 'QPolygon') { + if (polygon?.type !== 'QPolygon') { return } - + setScale(e) polygon.setScaleX(e) canvas?.renderAll()