Browse Source

Incorrect form value assignment

pull/2285/head
olicooper 7 years ago
committed by GitHub
parent
commit
e325f58a53
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts

2
npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts

@ -124,7 +124,7 @@ export class UsersComponent implements OnInit {
name: [this.selected.name || '', [Validators.maxLength(64)]], name: [this.selected.name || '', [Validators.maxLength(64)]],
surname: [this.selected.surname || '', [Validators.maxLength(64)]], surname: [this.selected.surname || '', [Validators.maxLength(64)]],
phoneNumber: [this.selected.phoneNumber || '', [Validators.maxLength(16)]], phoneNumber: [this.selected.phoneNumber || '', [Validators.maxLength(16)]],
lockoutEnabled: [this.selected.twoFactorEnabled || (this.selected.id ? false : true)], lockoutEnabled: [this.selected.lockoutEnabled || (this.selected.id ? false : true)],
twoFactorEnabled: [this.selected.twoFactorEnabled || (this.selected.id ? false : true)], twoFactorEnabled: [this.selected.twoFactorEnabled || (this.selected.id ? false : true)],
roleNames: this.fb.array( roleNames: this.fb.array(
this.roles.map(role => this.roles.map(role =>

Loading…
Cancel
Save