Konstantinos Kaloutas 2 лет назад
Родитель
Сommit
cc3c0197da
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tldraw/packages/core/src/lib/TLApi/TLApi.ts

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

@@ -261,7 +261,8 @@ export class TLApi<S extends TLShape = TLShape, K extends TLEventMap = TLEventMa
     const clone = new ShapeClass({
       ...shape.serialized,
       id: uniqueId(),
-      type: shape.type,
+      nonce: Date.now(),
+      refs: [],
       label: '',
       point: point,
     })