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