Fixing a second whoopsie.

This commit is contained in:
Paul Kinlan
2019-02-21 20:53:14 +00:00
committed by GitHub
parent 300612b09b
commit 7af949b5a5

View File

@@ -75,7 +75,7 @@ export default class App extends Component<Props, State> {
@bind @bind
private onFileDrop({ files }: FileDropEvent) { private onFileDrop({ files }: FileDropEvent) {
if (!files && files.length > 0) return; if (!files || files.length > 0) return;
const file = files[0]; const file = files[0];
this.openEditor(); this.openEditor();
this.setState({ file }); this.setState({ file });