Explorar o código

Fix cmd-a drawing arrows (#321)

We need to quit if we have either elements OR appState, not both.
Christopher Chedeau %!s(int64=5) %!d(string=hai) anos
pai
achega
5bdd0a35f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/index.tsx

+ 1 - 1
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;
     }