Fix: Modifier Categories was not showing the names of Menu Categories in Modifier Category Detail Component. This was because the Menu Category Link had only the id field.

Took this time to improve the Modifier route.
This commit is contained in:
tanshu committed 2020-11-25 12:38:22 +05:30
1 parent d9e0397b21
commit e16e1822b8
9 files changed
+57 -45

No files matched your search

+1 -2
View File
@@ -6,7 +6,7 @@ export class Modifier {
name: string;
showInBill: boolean;
price: number;
modifierCategory: ModifierCategory;
modifierCategory?: ModifierCategory;
isActive: boolean;
billPrice?: number;
@@ -15,7 +15,6 @@ export class Modifier {
this.name = '';
this.showInBill = true;
this.price = 0;
this.modifierCategory = new ModifierCategory();
this.isActive = true;
Object.assign(this, init);
}