dirch _removeUpload calls

This commit is contained in:
Artur Paikin 2018-09-26 17:35:41 -04:00
parent 6463f9e1a4
commit bfd4166b93

View file

@ -586,12 +586,6 @@ class Uppy {
cancelAll () {
this.emit('cancel-all')
const { currentUploads } = this.getState()
const uploadIDs = Object.keys(currentUploads)
uploadIDs.forEach((id) => {
this._removeUpload(id)
})
const files = Object.keys(this.getState().files)
files.forEach((fileID) => {
this.removeFile(fileID)