From 42463179b5aeec96916c55925ad26abbd767202b Mon Sep 17 00:00:00 2001
From: Vito <vito.albano@alfresco.com>
Date: Tue, 8 Dec 2020 13:18:33 +0000
Subject: [PATCH] readding wrongly removed check: (#1867)

Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
---
 src/app/app.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index cb0398323..f9b261723 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -79,7 +79,7 @@ export class AppComponent implements OnInit, OnDestroy {
 
   ngOnInit() {
     this.alfrescoApiService.getInstance().on('error', (error: { status: number; response: any }) => {
-      if (error.status === 401) {
+      if (error.status === 401 && !this.alfrescoApiService.isExcludedErrorListener(error?.response?.req?.url)) {
         if (!this.authenticationService.isLoggedIn()) {
           this.store.dispatch(new CloseModalDialogsAction());