Skip to content

Commit

Permalink
fix: check for git remotes (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
akurinnoy authored Oct 11, 2024
1 parent 2901c06 commit 2e98226
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 2e98226

Please sign in to comment.