This commit is contained in:
2021-02-06 15:25:07 +01:00
parent 047f2660f2
commit 1434918f8e
5 changed files with 55 additions and 10 deletions

View File

@@ -169,6 +169,7 @@ async function createDish(dish, restaurantId, oldDish) {
}
function appendDishToLunchSet(lunchMenu, setName, dishId, quantity) {
console.log("append called")
const result = lunchMenu.map((lunchSet) => {
if (lunchSet.lunchSetName === setName) {
let updatedSet = lunchSet;