moved closing progressbar logic to finally block
This commit is contained in:
parent
60fb583598
commit
121e3696d7
1 changed files with 4 additions and 1 deletions
|
@ -43,12 +43,15 @@ export default function CreateCollection(props) {
|
|||
|
||||
await UploadService.uploadFiles(acceptedFiles, collectionLatestFile, token, progressBarProps);
|
||||
refetchData();
|
||||
setProgressView(false);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
if (err.response)
|
||||
setErrorCode(err.response.status);
|
||||
}
|
||||
finally {
|
||||
setProgressView(false);
|
||||
}
|
||||
}
|
||||
return (
|
||||
<Modal
|
||||
|
|
Loading…
Add table
Reference in a new issue