From 24d16db1e1c7ab76e37739cc933e47a98f7139cd Mon Sep 17 00:00:00 2001 From: Oleksii Kurinnyi Date: Thu, 10 Oct 2024 17:34:46 +0300 Subject: [PATCH] fix: check for git remotes --- packages/dashboard-frontend/src/services/oauth/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard-frontend/src/services/oauth/index.ts b/packages/dashboard-frontend/src/services/oauth/index.ts index 7b99ee46e..f0a923680 100644 --- a/packages/dashboard-frontend/src/services/oauth/index.ts +++ b/packages/dashboard-frontend/src/services/oauth/index.ts @@ -34,7 +34,7 @@ export class OAuthService { project = project || workspace.spec.template.dependentProjects?.find(project => !!project.git); try { - if (project) { + if (project?.git?.remotes?.origin) { await refreshFactoryOauthToken(project.git!.remotes.origin); } } catch (e) {