Update hacks.ts

This commit is contained in:
Steve Ruiz 2021-06-29 19:30:57 +01:00
parent 5d66c153be
commit 2048b2bb70

View file

@ -26,12 +26,11 @@ export function fastDrawUpdate(info: PointerInfo): void {
const selectedId = setToArray(tld.getSelectedIds(data))[0] const selectedId = setToArray(tld.getSelectedIds(data))[0]
const shape = data.document.pages[data.currentPageId].shapes[ const { shapes } = data.document.pages[data.currentPageId]
selectedId
] as DrawShape
;(data.document.pages[data.currentPageId].shapes[selectedId] as DrawShape) = const shape = shapes[selectedId] as DrawShape
deepClone(shape)
shapes[selectedId] = deepClone(shape)
state.forceData(freeze(data)) state.forceData(freeze(data))
} }