Browse Source

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

Lee Morgan 5 năm trước cách đây
mục cha
commit
fb66e9d287

+ 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);
         }