From bc21eeb11468a287832372e25d5569b8173fb786 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Thu, 20 May 2021 12:34:55 +0200 Subject: [PATCH] fix: missing patchvalue (#1758) --- .../pages/projects/apps/app-detail/app-detail.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ccc464771..3505aec9f 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); } }