We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10f990d + a0e9497 commit 0a738a3Copy full SHA for 0a738a3
components/upload/demo/upload-manually.vue
@@ -52,7 +52,7 @@ const handleRemove: UploadProps['onRemove'] = file => {
52
};
53
54
const beforeUpload: UploadProps['beforeUpload'] = file => {
55
- fileList.value = [...fileList.value, file];
+ fileList.value = [...(fileList.value || []), file];
56
return false;
57
58
0 commit comments