mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 09:17:20 +00:00
Fixing a second whoopsie.
This commit is contained in:
@@ -75,7 +75,7 @@ export default class App extends Component<Props, State> {
|
||||
|
||||
@bind
|
||||
private onFileDrop({ files }: FileDropEvent) {
|
||||
if (!files && files.length > 0) return;
|
||||
if (!files || files.length > 0) return;
|
||||
const file = files[0];
|
||||
this.openEditor();
|
||||
this.setState({ file });
|
||||
|
||||
Reference in New Issue
Block a user