|
@@ -1095,7 +1095,8 @@ class Uppy {
|
|
|
|
|
|
this.setState({ error: errorMsg })
|
|
|
|
|
|
- if (file != null) {
|
|
|
+
|
|
|
+ if (file != null && typeof file.id === 'string') {
|
|
|
this.setFileState(file.id, {
|
|
|
error: errorMsg,
|
|
|
response,
|
|
@@ -1591,7 +1592,7 @@ class Uppy {
|
|
|
|
|
|
|
|
|
lastStep.catch((err) => {
|
|
|
- this.emit('error', err, uploadID)
|
|
|
+ this.emit('error', err)
|
|
|
this.removeUpload(uploadID)
|
|
|
})
|
|
|
|