How could I have gotten this so wrong? (#873)

This commit is contained in:
Jed Fox 2020-03-07 20:37:35 -05:00 committed by GitHub
parent c6a0cfc2b1
commit 8ecb4201db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,12 +13,10 @@ const writeData = (
updater: () => { elements: ExcalidrawElement[]; appState: AppState } | null,
) => {
if (
[
appState.multiElement,
appState.resizingElement,
appState.editingElement,
appState.draggingElement,
].some(Boolean)
!appState.multiElement &&
!appState.resizingElement &&
!appState.editingElement &&
!appState.draggingElement
) {
const data = updater();