Move allowNewUpload reset to cancelAll()

This commit is contained in:
Renée Kooi 2018-10-08 12:13:45 +02:00
parent 363643f0dc
commit 72a02f55bc
No known key found for this signature in database
GPG key ID: 8CDD5F0BC448F040

View file

@ -598,6 +598,7 @@ class Uppy {
})
this.setState({
allowNewUpload: true,
totalProgress: 0,
error: null
})
@ -621,7 +622,6 @@ class Uppy {
reset () {
this.cancelAll()
this.setState({ allowNewUpload: true })
}
_calculateProgress (file, data) {