bug fix
This commit is contained in:
@@ -850,7 +850,7 @@ const handleChangeSelectFile = async () => {
|
|||||||
const handleFilesUpload = (files: FileList) => {
|
const handleFilesUpload = (files: FileList) => {
|
||||||
const fileList = [];
|
const fileList = [];
|
||||||
|
|
||||||
if (props.multiple == false && fileList.length > 1) {
|
if (props.multiple == false && files.length > 1) {
|
||||||
fileList.push(Array.from(files)[0]);
|
fileList.push(Array.from(files)[0]);
|
||||||
} else {
|
} else {
|
||||||
fileList.push(...Array.from(files));
|
fileList.push(...Array.from(files));
|
||||||
|
|||||||
Reference in New Issue
Block a user