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 shape = data.document.pages[data.currentPageId].shapes[
selectedId
] as DrawShape
const { shapes } = data.document.pages[data.currentPageId]
;(data.document.pages[data.currentPageId].shapes[selectedId] as DrawShape) =
deepClone(shape)
const shape = shapes[selectedId] as DrawShape
shapes[selectedId] = deepClone(shape)
state.forceData(freeze(data))
}