mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT_4948 fixing create team javascript error (#4809)
This commit is contained in:
committed by
Joram Wilander
parent
2e5ae55e69
commit
25c5111f3f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user