Fix for adding an user without staff (#1701)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
98196bde39
commit
e40bb0d8ac
@@ -126,6 +126,9 @@ export class CreateUserComponent implements OnInit, AfterViewInit {
|
||||
*/
|
||||
submit() {
|
||||
const user = this.userForm.value;
|
||||
if (this.userForm.value.staffId == null || this.userForm.value.staffId === '') {
|
||||
delete user.staffId;
|
||||
}
|
||||
this.usersService.createUser(user).subscribe((response: any) => {
|
||||
if (this.configurationWizardService.showUsersForm === true) {
|
||||
this.configurationWizardService.showUsersForm = false;
|
||||
|
||||
Reference in New Issue
Block a user