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();