PLT_4948 fixing create team javascript error (#4809)

Этот коммит содержится в:
Corey Hulen
2016-12-16 05:01:51 -08:00
коммит произвёл Joram Wilander
родитель 2e5ae55e69
Коммит 25c5111f3f
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -210,7 +210,7 @@ export default class Client {
}
if (successCallback) {
if (res && res.body) {
if (res && res.body !== undefined) { // eslint-disable-line no-undefined
successCallback(res.body, res);
} else {
console.error('Missing response body for ' + methodName); // eslint-disable-line no-console

Просмотреть файл

@@ -38,7 +38,7 @@ class WebClientClass extends Client {
}
handleError(err, res) {
if (res.body.id === 'api.context.mfa_required.app_error') {
if (res && res.body && res.body.id === 'api.context.mfa_required.app_error') {
window.location.reload();
return;
}