fix gesturetool for vercel

This commit is contained in:
Jeff Emmett 2025-07-29 22:49:27 -04:00
parent 71a6b29165
commit 6c7bf3b208
1 changed files with 1 additions and 2 deletions

View File

@ -373,7 +373,6 @@ export class Drawing extends StateNode {
const {
id,
props: { size },
} = initialShape
const shape = this.editor.getShape<DrawableShape>(id)!
@ -430,7 +429,7 @@ export class Drawing extends StateNode {
if (this.canClose()) {
; (shapePartial as TLShapePartial<TLDrawShape>).props!.isClosed =
this.getIsClosed(newSegments, size)
this.getIsClosed(newSegments, shape.props.size)
}
this.editor.updateShapes([shapePartial])