Bläddra i källkod

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

Lee Morgan 5 år sedan
förälder
incheckning
fb66e9d287
2 ändrade filer med 0 tillägg och 8 borttagningar
  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);
         }