PLT-4635 Fix Cannot read property 'body' of undefined (#4629)
* Fix Cannot read property 'body' of undefined * return if an error was found
Этот коммит содержится в:
@@ -201,12 +201,12 @@ export default class Client {
|
||||
|
||||
if (errorCallback) {
|
||||
errorCallback(e, err, res);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (successCallback) {
|
||||
if (res.body) {
|
||||
if (res && res.body) {
|
||||
successCallback(res.body, res);
|
||||
} else {
|
||||
console.error('Missing response body for ' + methodName); // eslint-disable-line no-console
|
||||
|
||||
Ссылка в новой задаче
Block a user