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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user