mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-27 12:13:53 +00:00
Handle errors when adding a folder
This commit is contained in:
parent
f1dd42c916
commit
f046d3ddcd
1 changed files with 5 additions and 0 deletions
|
|
@ -345,6 +345,11 @@ module.exports = class View {
|
|||
state = this.plugin.core.getState()[this.plugin.stateId]
|
||||
state.selectedFolders[folderId] = {loading: false, files: files}
|
||||
this.updateState({selectedFolders: folders})
|
||||
}).catch((e) => {
|
||||
state = this.plugin.core.getState()[this.plugin.stateId]
|
||||
delete state.selectedFolders[folderId]
|
||||
this.updateState({selectedFolders: state.selectedFolders})
|
||||
this.handleError(e)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue