Fix cmd-a drawing arrows (#321)

We need to quit if we have either elements OR appState, not both.
pull/322/head
Christopher Chedeau 5 years ago committed by GitHub
parent 74764b06eb
commit 5bdd0a35f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save