nggggg - file length === 0

This commit is contained in:
Paul Kinlan
2019-02-21 21:27:59 +00:00
committed by GitHub
parent 7af949b5a5
commit 520a5dc9f2

View File

@@ -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 });