From 195cded10b53bf413466089986fa221d729a9101 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Fri, 15 Oct 2021 16:25:47 +0200 Subject: [PATCH] Don't use window.location.reload for forcing login - Causes e2e tests to go into an infinite reload loop --- frontend/src/component/App.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/src/component/App.tsx b/frontend/src/component/App.tsx index 8180e4a393..f6499be5a2 100644 --- a/frontend/src/component/App.tsx +++ b/frontend/src/component/App.tsx @@ -78,12 +78,6 @@ const App = ({ location, user, fetchUiBootstrap, feedback }: IAppProps) => { { if (!isUnauthorized()) { - if (error.status === 401) { - // If we've been in an authorized state, - // but cookie has been deleted (server or client side, - // perform a window reload to reload app - window.location.reload(); - } setToastData({ show: true, type: 'error',