PLT_4948 fixing create team javascript error (#4809)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
2e5ae55e69
Коммит
25c5111f3f
@@ -210,7 +210,7 @@ export default class Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (successCallback) {
|
if (successCallback) {
|
||||||
if (res && res.body) {
|
if (res && res.body !== undefined) { // eslint-disable-line no-undefined
|
||||||
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
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class WebClientClass extends Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleError(err, res) {
|
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();
|
window.location.reload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user