client/api: fix null reference error
This commit is contained in:
parent
ecf347ef6e
commit
b366d8981c
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class Api extends events.EventTarget {
|
|||
return requestPromise;
|
||||
})
|
||||
.catch(error => {
|
||||
if (error.response.name ===
|
||||
if (error.response && error.response.name ===
|
||||
'MissingOrExpiredRequiredFileError') {
|
||||
for (let key of Object.keys(files)) {
|
||||
files[key].token = null;
|
||||
|
|
Loading…
Reference in a new issue