PLT_4948 fixing create team javascript error (#4809)

This commit is contained in:
Corey Hulen
2016-12-16 05:01:51 -08:00
committed by Joram Wilander
parent 2e5ae55e69
commit 25c5111f3f
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}