Skip to content

Commit b26fa85

Browse files
chippisonsgiehl
authored andcommitted
put back old code; we do not want to suppress the error message since it might cause some regressions in plugins that load from external source
1 parent 3b4a765 commit b26fa85

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ type AnyFunction = (...params:any[]) => any; // eslint-disable-line
6868
* error callback to use by default
6969
*/
7070
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)) {
71+
// do not display error message if request was aborted
72+
if (status === 'abort' || !deferred || deferred.status === 0) {
7573
return;
7674
}
7775

0 commit comments

Comments
 (0)