Moved all auth schemas into their own files. Updated imports.
This commit is contained in:
@ -122,7 +122,11 @@ export class SectionPrinterComponent implements OnInit {
|
||||
const array = this.form.get('menuCategories') as FormArray;
|
||||
this.list.forEach((item, index) => {
|
||||
const cont = array.controls[index].value;
|
||||
item.printer = { id: cont.printer };
|
||||
if (cont.printer === null || cont.printer === undefined) {
|
||||
item.printer = null;
|
||||
} else {
|
||||
item.printer = { id: cont.printer };
|
||||
}
|
||||
item.copies = +cont.copies;
|
||||
});
|
||||
return this.list;
|
||||
|
||||
Reference in New Issue
Block a user