Browse Source

UI: Fixed updated custom mapper URL when view OAuth 2.0 clients

pull/12029/head
Vladyslav_Prykhodko 2 years ago
parent
commit
37a0c2e19e
  1. 6
      ui-ngx/src/app/modules/home/pages/admin/oauth2/clients/client.component.ts

6
ui-ngx/src/app/modules/home/pages/admin/oauth2/clients/client.component.ts

@ -214,7 +214,11 @@ export class ClientComponent extends EntityComponent<OAuth2Client, PageLink, OAu
const mapperConfig = control.get('mapperConfig') as UntypedFormGroup;
if (type === MapperType.CUSTOM) {
mapperConfig.removeControl('basic');
mapperConfig.addControl('custom', this.formCustomGroup(predefinedValue?.custom));
if (!mapperConfig.get('custom')) {
mapperConfig.addControl('custom', this.formCustomGroup(predefinedValue?.custom));
} else {
mapperConfig.get('custom').patchValue(predefinedValue.custom, {emitEvent: false});
}
} else {
mapperConfig.removeControl('custom');
if (!mapperConfig.get('basic')) {

Loading…
Cancel
Save