Skip to content

Commit

Permalink
fix: check for git remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
akurinnoy committed Oct 10, 2024
1 parent 23f9a7c commit 842c1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dashboard-frontend/src/services/oauth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 842c1c2

Please sign in to comment.