From 3ca3f0b77dba4720ca6be4d82db1229ee56093b7 Mon Sep 17 00:00:00 2001 From: ivinokur Date: Fri, 3 Nov 2023 12:20:40 +0200 Subject: [PATCH] fixup! Do not start a workspace on SCM unauthorised error --- .../src/store/Workspaces/devWorkspaces/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dashboard-frontend/src/store/Workspaces/devWorkspaces/index.ts b/packages/dashboard-frontend/src/store/Workspaces/devWorkspaces/index.ts index 837e32cf6..6977cd22a 100644 --- a/packages/dashboard-frontend/src/store/Workspaces/devWorkspaces/index.ts +++ b/packages/dashboard-frontend/src/store/Workspaces/devWorkspaces/index.ts @@ -365,6 +365,7 @@ export const actionCreators: ActionCreators = { getDevWorkspaceClient().checkForDevWorkspaceError(startingWorkspace); } catch (e) { + // Skip unauthorised errors. The page is redirecting to an SCM authentication page. if (common.helpers.errors.includesAxiosResponse(e) && isOAuthResponse(e.response.data)) { return; }