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

pull/875/head
Jed Fox 5 years ago committed by GitHub
parent c6a0cfc2b1
commit 8ecb4201db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save