Browse Source

fix: undo/redo of converted shapes

Konstantinos Kaloutas 2 years ago
parent
commit
ad5757de61
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tldraw/packages/core/src/lib/TLApi/TLApi.ts

+ 1 - 0
tldraw/packages/core/src/lib/TLApi/TLApi.ts

@@ -428,6 +428,7 @@ export class TLApi<S extends TLShape = TLShape, K extends TLEventMap = TLEventMa
       return new ShapeClass({
       return new ShapeClass({
         ...s.serialized,
         ...s.serialized,
         type: type,
         type: type,
+        nonce: Date.now(),
       })
       })
     })
     })
     this.app.currentPage.addShapes(...clones)
     this.app.currentPage.addShapes(...clones)