We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 953e36a commit 5ee22feCopy full SHA for 5ee22fe
.prettierrc
@@ -2,5 +2,6 @@
2
"singleQuote": true,
3
"trailingComma": "all",
4
"proseWrap": "never",
5
- "printWidth": 100
+ "printWidth": 100,
6
+ "arrowParens": "avoid"
7
}
src/AjaxUploader.tsx
@@ -135,6 +135,8 @@ class AjaxUploader extends Component<UploadProps> {
135
const { props } = this;
136
const { onStart, onProgress, transformFile = originFile => originFile } = props;
137
138
+ onStart(file);
139
+
140
new Promise(resolve => {
141
let { action } = props;
142
if (typeof action === 'function') {
@@ -180,7 +182,6 @@ class AjaxUploader extends Component<UploadProps> {
180
182
},
181
183
};
184
- onStart(file);
185
this.reqs[uid] = request(requestOption);
186
});
187
0 commit comments