@ -153,8 +153,8 @@
.reset-component;
cursor: pointer;
display: inline-block;
&:not(:last-child) {
margin-right: 8px;
& + & {
margin-left: 8px;
}
@ -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);