From 5bdd0a35f63d9b9c10e62da5ba1105eb246c0441 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 11 Jan 2020 16:06:25 -0800 Subject: [PATCH] Fix cmd-a drawing arrows (#321) We need to quit if we have either elements OR appState, not both. --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index e145955e..41cc9e8a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -232,7 +232,7 @@ export class App extends React.Component<{}, AppState> { const data = this.actionManager.handleKeyDown(event, elements, this.state); this.syncActionResult(data); - if (data.elements !== undefined && data.appState !== undefined) { + if (data.elements !== undefined || data.appState !== undefined) { return; }