mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
basic shopping view in MealPlanEditor
This commit is contained in:
@@ -130,7 +130,7 @@ export interface MealPlan {
|
||||
* @type {boolean}
|
||||
* @memberof MealPlan
|
||||
*/
|
||||
addshopping: boolean;
|
||||
addshopping?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -145,7 +145,6 @@ export function instanceOfMealPlan(value: object): value is MealPlan {
|
||||
if (!('recipeName' in value) || value['recipeName'] === undefined) return false;
|
||||
if (!('mealTypeName' in value) || value['mealTypeName'] === undefined) return false;
|
||||
if (!('shopping' in value) || value['shopping'] === undefined) return false;
|
||||
if (!('addshopping' in value) || value['addshopping'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -173,7 +172,7 @@ export function MealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
||||
'recipeName': json['recipe_name'],
|
||||
'mealTypeName': json['meal_type_name'],
|
||||
'shopping': json['shopping'],
|
||||
'addshopping': json['addshopping'],
|
||||
'addshopping': json['addshopping'] == null ? undefined : json['addshopping'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user