Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/plus/integrations/integrationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,17 +479,19 @@ export class IntegrationService implements Disposable {
SelfHostedIntegrationId.CloudGitHubEnterprise,
);
if (existingConfigured?.length) {
const { domain } = existingConfigured[0];
if (domain == null) throw new Error(`Domain is required for '${id}' integration`);
const { domain: configuredDomain } = existingConfigured[0];
if (configuredDomain == null) throw new Error(`Domain is required for '${id}' integration`);
integration = new (
await import(/* webpackChunkName: "integrations" */ './providers/github')
).GitHubEnterpriseIntegration(
this.container,
this.authenticationService,
this.getProvidersApi.bind(this),
domain,
configuredDomain,
id,
);
// assign domain because it's part of caching key:
domain = configuredDomain;
break;
}

Expand Down
Loading