remove dublicate circle

This commit is contained in:
hamid zarghami
2025-11-26 16:06:23 +03:30
parent 4203cc1fd2
commit 56bfdbfe2e
7 changed files with 7 additions and 31 deletions
@@ -91,15 +91,12 @@ export const useDrawingHandlers = () => {
addObject(newObject);
setTempObject(newObject);
} else {
const updates: Partial<EditorObject> =
tool === "circle"
? { width: newObject.width, height: newObject.height }
: {
x: newObject.x,
y: newObject.y,
width: newObject.width,
height: newObject.height,
};
const updates: Partial<EditorObject> = {
x: newObject.x,
y: newObject.y,
width: newObject.width,
height: newObject.height,
};
updateObject(tempObject.id, updates);
}
};