소스 검색

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