浏览代码

Fix cmd-a drawing arrows (#321)

We need to quit if we have either elements OR appState, not both.
Christopher Chedeau 5 年之前
父节点
当前提交
5bdd0a35f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
     }