mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Handle file upload errors without response.body (#7047)
GitOrigin-RevId: a6c06bac5a74d2d4e9ea9c65f5d62b105e17ef24
This commit is contained in:
parent
ef77b23888
commit
cdbf3879b4
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ export default function FileTreeUploadDoc() {
|
|||
break
|
||||
|
||||
default:
|
||||
setError(response.body.error)
|
||||
console.error(error)
|
||||
setError(response.body?.error || 'generic_something_went_wrong')
|
||||
break
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue