forked from external-repos/squoosh
Fixing a second whoopsie.
This commit is contained in:
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user