diff --git a/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts b/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts index ccc464771be..3505aec9f1e 100644 --- a/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts +++ b/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts @@ -266,6 +266,9 @@ export class AppDetailComponent implements OnInit, OnDestroy { if (this.app.oidcConfig) { this.oidcForm.patchValue(this.app.oidcConfig); } + if (this.app.apiConfig) { + this.apiForm.patchValue(this.app.apiConfig); + } this.oidcForm.valueChanges.subscribe((oidcConfig) => { this.initialAuthMethod = this.authMethodFromPartialConfig({ oidc: oidcConfig }); @@ -375,7 +378,7 @@ export class AppDetailComponent implements OnInit, OnDestroy { (partialConfig.api as Partial).authMethodType ?? APIAuthMethodType.API_AUTH_METHOD_TYPE_BASIC; - this.apiAuthMethodType?.setValue(this.app.apiConfig.authMethodType); + this.apiForm.patchValue(this.app.apiConfig); } }