update code style

This commit is contained in:
afc163 2017-03-14 14:04:40 +08:00
parent 06b17fd553
commit 7290e1070b

View File

@ -237,7 +237,7 @@ export default class Upload extends React.Component<UploadProps, any> {
this.setState({ fileList: info.fileList });
}
const onChange = this.props.onChange;
const { onChange } = this.props;
if (onChange) {
onChange(info);
}