Make updating code controls async

This commit is contained in:
Steve Ruiz 2021-06-25 12:01:22 +01:00
parent 85dc3028b4
commit 0ee26a8493
27 changed files with 212 additions and 75 deletions

View file

@ -9,7 +9,7 @@ export default class Rectangle extends CodeShape<RectangleShape> {
constructor(props = {} as ShapeProps<RectangleShape>) {
super({
id: uniqueId(),
seed: Math.random(),
parentId: (window as any).currentPageId,
type: ShapeType.Rectangle,
isGenerated: true,