mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 09:39:15 +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
|
@bind
|
||||||
private onFileDrop({ file }: FileDropEvent) {
|
private onFileDrop({ files }: FileDropEvent) {
|
||||||
if (!file) return;
|
if (!files && files.length > 0) return;
|
||||||
this.openEditor();
|
this.openEditor();
|
||||||
this.setState({ file });
|
this.setState({ files[0] });
|
||||||
}
|
}
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
|
|||||||
Reference in New Issue
Block a user