Browse Source

Refactoring

pull/4179/head
Andrew Volostnykh 5 years ago
parent
commit
a600a5050a
  1. 2
      ui-ngx/src/app/modules/home/pages/user/user.component.ts

2
ui-ngx/src/app/modules/home/pages/user/user.component.ts

@ -60,7 +60,7 @@ export class UserComponent extends EntityComponent<User> {
}
isUserCredentialPresent(): boolean {
return !(!this.entity || !this.entity.additionalInfo || isUndefined(this.entity.additionalInfo.userCredentialsEnabled));
return this.entity && this.entity.additionalInfo && isDefinedAndNotNull(this.entity.additionalInfo.userCredentialsEnabled);
}
buildForm(entity: User): FormGroup {

Loading…
Cancel
Save