mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Handle file upload errors without response (#7490)
GitOrigin-RevId: 359870a45e501af85618dd4a33b7b1618e8902ac
This commit is contained in:
parent
e096bf051a
commit
af77e97e4f
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ export default function FileTreeUploadDoc() {
|
|||
|
||||
default:
|
||||
console.error(error)
|
||||
setError(response.body?.error || 'generic_something_went_wrong')
|
||||
setError(response?.body?.error || 'generic_something_went_wrong')
|
||||
break
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue