Moved all auth schemas into their own files. Updated imports.
This commit is contained in:
@ -50,7 +50,7 @@ export class TableDetailComponent implements OnInit, AfterViewInit {
|
||||
this.form.setValue({
|
||||
name: this.item.name,
|
||||
seats: this.item.seats,
|
||||
section: this.item.section.id ? this.item.section.id : '',
|
||||
section: this.item.section ? this.item.section.id : '',
|
||||
isActive: this.item.isActive,
|
||||
});
|
||||
}
|
||||
@ -104,6 +104,9 @@ export class TableDetailComponent implements OnInit, AfterViewInit {
|
||||
const formModel = this.form.value;
|
||||
this.item.name = formModel.name;
|
||||
this.item.seats = +formModel.seats;
|
||||
if (this.item.section === null || this.item.section === undefined) {
|
||||
this.item.section = new Section();
|
||||
}
|
||||
this.item.section.id = formModel.section;
|
||||
this.item.isActive = formModel.isActive;
|
||||
return this.item;
|
||||
|
||||
Reference in New Issue
Block a user