Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Fixing the multifile dep update: file->files
Paul Kinlan6f00e9825cd3
diff --git a/src/components/App/index.tsx b/src/components/App/index.tsxindex 8ef731d5..c10799f2 100644--- a/src/components/App/index.tsx+++ b/src/components/App/index.tsx@@ -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