Commit 91fc90bc authored by Mohammad Nakhaee's avatar Mohammad Nakhaee
Browse files

set clicked to false if there is any problem

parent e9e114f1
Pipeline #113373 passed with stages
in 24 minutes and 19 seconds
......@@ -35,7 +35,10 @@ export default function NewUploadButton({...props}) {
.then((upload) => {
history.push(getUrl(`upload/id/${upload.upload_id}`, location))
})
.catch(errors.raiseError)
.catch((error) => {
setClicked(false)
errors.raiseError(error)
})
}
return <Button variant="contained" onClick={handleClick} disabled={clicked} {...props}>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment