From 8ecb4201db2d152167c7c136cb0665db4129644d Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Sat, 7 Mar 2020 20:37:35 -0500 Subject: [PATCH] How could I have gotten this so wrong? (#873) --- src/actions/actionHistory.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/actions/actionHistory.tsx b/src/actions/actionHistory.tsx index 6c78634f..bf966168 100644 --- a/src/actions/actionHistory.tsx +++ b/src/actions/actionHistory.tsx @@ -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();