mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-30 21:49:50 -05:00
fixed copying meal plans did not add to shopping
This commit is contained in:
@@ -157,6 +157,7 @@ function dropCalendarItemOnDate(undefinedItem: IMealPlanNormalizedCalendarItem,
|
||||
let new_entry = Object.assign({}, mealPlan)
|
||||
new_entry.fromDate = targetDate
|
||||
new_entry.toDate = DateTime.fromJSDate(targetDate).plus(fromToDiff).toJSDate()
|
||||
new_entry.addshopping = mealPlan.shopping
|
||||
useMealPlanStore().createObject(new_entry)
|
||||
} else {
|
||||
mealPlan.fromDate = targetDate
|
||||
|
||||
Reference in New Issue
Block a user