Fixing the multifile dep update: file->files

This commit is contained in:
Paul Kinlan
2019-02-21 20:35:49 +00:00
committed by GitHub
parent 6ca9c5300e
commit 6f00e9825c

View File

@@ -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