Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

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

Jed Fox8ecb4201db2d
diff --git a/src/actions/actionHistory.tsx b/src/actions/actionHistory.tsx
index 6c78634fcc..bf9661685c 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();