Skip to content

Commit 55edfb1

Browse files
committed
chore: simplify
1 parent 29c95a6 commit 55edfb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AjaxUploader.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ class AjaxUploader extends Component<UploadProps> {
8181
}
8282

8383
if (directory) {
84-
files = await traverseFileTree(Array.prototype.slice.call(items), (_file: RcFile) =>
85-
this.isNativeDirectory() ? true : attrAccept(_file, this.props.accept),
84+
files = await traverseFileTree(
85+
Array.prototype.slice.call(items),
86+
(_file: RcFile) => this.isNativeDirectory() || attrAccept(_file, this.props.accept),
8687
);
8788
this.uploadFiles(files);
8889
} else {

0 commit comments

Comments
 (0)