Skip to content

Commit 5d60825

Browse files
committed
chore: remove
1 parent 39a9b33 commit 5d60825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/uploader/uploader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ const InternalUploader: ForwardRefRenderFunction<
359359
beforeUpload(new Array<File>().slice.call(files)).then(
360360
(f: Array<File> | boolean) => {
361361
const _files: File[] = filterFiles(new Array<File>().slice.call(f))
362-
if (!_files) $el.value = ''
362+
if (!_files.length) $el.value = ''
363363
readFile(_files)
364364
}
365365
)

0 commit comments

Comments
 (0)