Quellcode durchsuchen

Update editRecipe.js to handle the new bottle data structure.

Lee Morgan vor 5 Jahren
Ursprung
Commit
fb66e9d287
2 geänderte Dateien mit 0 neuen und 8 gelöschten Zeilen
  1. 0 4
      views/dashboardPage/bundle.js
  2. 0 4
      views/dashboardPage/js/sidebars/editRecipe.js

+ 0 - 4
views/dashboardPage/bundle.js

@@ -1796,10 +1796,6 @@ let editRecipe = {
                 };
             }
 
-            if(ingredient.ingredient.specialUnit === "bottle"){
-                newIngredient.quantity = quantity;
-            }
-
             data.ingredients.push(newIngredient);
         }
 

+ 0 - 4
views/dashboardPage/js/sidebars/editRecipe.js

@@ -95,10 +95,6 @@ let editRecipe = {
                 };
             }
 
-            if(ingredient.ingredient.specialUnit === "bottle"){
-                newIngredient.quantity = quantity;
-            }
-
             data.ingredients.push(newIngredient);
         }