Skip to content

Commit 73cf21b

Browse files
committed
chore: all
1 parent f1cb684 commit 73cf21b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AjaxUploader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class AjaxUploader extends Component<UploadProps> {
8989
let acceptFiles = [...files].filter((file: RcFile) => attrAccept(file, accept));
9090

9191
if (multiple === false) {
92-
acceptFiles = files.slice(0, 1);
92+
acceptFiles = acceptFiles.slice(0, 1);
9393
}
9494

9595
this.uploadFiles(acceptFiles);

tests/uploader.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ describe('uploader', () => {
10321032
type: 'text/plain',
10331033
},
10341034
],
1035-
2,
1035+
1,
10361036
'',
10371037
{
10381038
directory: false,

0 commit comments

Comments
 (0)