Moved all auth schemas into their own files. Updated imports.

This commit is contained in:
2020-12-21 11:18:58 +05:30
parent c6da3b9e38
commit b85e930ace
54 changed files with 289 additions and 473 deletions

View File

@ -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;