mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 10:09:45 +00:00
Fixing a whoopsie
This commit is contained in:
@@ -76,8 +76,9 @@ 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];
|
||||||
this.openEditor();
|
this.openEditor();
|
||||||
this.setState({ files[0] });
|
this.setState({ file });
|
||||||
}
|
}
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
|
|||||||
Reference in New Issue
Block a user