Skip to content

Commit

Permalink
fix: missing patchvalue (#1758)
Browse files Browse the repository at this point in the history
  • Loading branch information
peintnermax committed May 20, 2021
1 parent 1ba70d2 commit bc21eeb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -375,7 +378,7 @@ export class AppDetailComponent implements OnInit, OnDestroy {
(partialConfig.api as Partial<APIConfig.AsObject>).authMethodType
?? APIAuthMethodType.API_AUTH_METHOD_TYPE_BASIC;

this.apiAuthMethodType?.setValue(this.app.apiConfig.authMethodType);
this.apiForm.patchValue(this.app.apiConfig);
}
}

Expand Down

0 comments on commit bc21eeb

Please sign in to comment.