diff --git a/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx b/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx index 06de07e76..2798a7121 100644 --- a/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx +++ b/frontend/src/pages/organization/AppConnections/OauthCallbackPage/OauthCallbackPage.tsx @@ -36,7 +36,8 @@ type GithubFormData = BaseFormData & type GithubRadarFormData = BaseFormData & Pick; -type GitLabFormData = BaseFormData & Pick; +type GitLabFormData = BaseFormData & + Pick; type AzureKeyVaultFormData = BaseFormData & Pick & @@ -147,7 +148,7 @@ export const OAuthCallbackPage = () => { clearState(AppConnection.GitLab); - const { connectionId, name, description, returnUrl, isUpdate } = formData; + const { connectionId, name, description, returnUrl, isUpdate, credentials } = formData; try { if (isUpdate && connectionId) { @@ -155,7 +156,8 @@ export const OAuthCallbackPage = () => { app: AppConnection.GitLab, connectionId, credentials: { - code: code as string + code: code as string, + instanceUrl: credentials.instanceUrl as string } }); } else { @@ -165,7 +167,8 @@ export const OAuthCallbackPage = () => { description, method: GitLabConnectionMethod.OAuth, credentials: { - code: code as string + code: code as string, + instanceUrl: credentials.instanceUrl as string } }); }