Browse Source

Fix: Upload Use object destructuring instead of creating temporary references for onRemove. (#7726)

pull/7733/head
thegatheringstorm 7 years ago
committed by 偏右
parent
commit
10f6907da4
  1. 2
      components/upload/UploadList.tsx

2
components/upload/UploadList.tsx

@ -26,7 +26,7 @@ export default class UploadList extends React.Component<UploadListProps, any> {
};
handleClose = (file: UploadFile) => {
const onRemove = this.props.onRemove;
const { onRemove } = this.props;
if (onRemove) {
onRemove(file);
}

Loading…
Cancel
Save