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) {
|
if (errorCallback) {
|
||||||
errorCallback(e, err, res);
|
errorCallback(e, err, res);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (successCallback) {
|
if (successCallback) {
|
||||||
if (res.body) {
|
if (res && res.body) {
|
||||||
successCallback(res.body, res);
|
successCallback(res.body, res);
|
||||||
} else {
|
} else {
|
||||||
console.error('Missing response body for ' + methodName); // eslint-disable-line no-console
|
console.error('Missing response body for ' + methodName); // eslint-disable-line no-console
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user