Update hacks.ts
This commit is contained in:
parent
5d66c153be
commit
2048b2bb70
1 changed files with 4 additions and 5 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue