Commit 5d43e2d3 authored by Joel's avatar Joel

chore: fix ts problem

parent a2296b83
...@@ -99,7 +99,7 @@ const FileUploader = ({ ...@@ -99,7 +99,7 @@ const FileUploader = ({
fileID: fileItem.fileID, fileID: fileItem.fileID,
file: res, file: res,
} }
const index = fileListCopy.findIndex(item => item.fileID === fileItem.fileID) const index = fileListCopy.findIndex((item: any) => item.fileID === fileItem.fileID)
fileListCopy[index] = completeFile fileListCopy[index] = completeFile
onFileUpdate(completeFile, 100, fileListCopy) onFileUpdate(completeFile, 100, fileListCopy)
return Promise.resolve({ ...completeFile }) return Promise.resolve({ ...completeFile })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment