We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b4a765 commit b26fa85Copy full SHA for b26fa85
plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts
@@ -68,10 +68,8 @@ type AnyFunction = (...params:any[]) => any; // eslint-disable-line
68
* error callback to use by default
69
*/
70
function defaultErrorCallback(deferred: XMLHttpRequest, status: string): void {
71
- // do not display error message if request was aborted or is unauthorized.
72
- // We redirect to login page if status is unauthorized.
73
- const noErrorMsgStatuses = [0, 401];
74
- if (status === 'abort' || !deferred || noErrorMsgStatuses.includes(deferred.status)) {
+ // do not display error message if request was aborted
+ if (status === 'abort' || !deferred || deferred.status === 0) {
75
return;
76
}
77
0 commit comments