Explorar el Código

Fix bug in searching ingredients

Lee Morgan hace 6 años
padre
commit
744ae74643
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      views/dashboardPage/ingredients.js

+ 1 - 0
views/dashboardPage/ingredients.js

@@ -12,6 +12,7 @@ window.ingredientsStrandObj = {
 
 
     populateIngredients: function(){
     populateIngredients: function(){
         let categories = categorizeIngredients(merchant.inventory);
         let categories = categorizeIngredients(merchant.inventory);
+        this.ingredients = [];
 
 
         let ingredientStrand = document.querySelector("#categoryList");
         let ingredientStrand = document.querySelector("#categoryList");
         while(ingredientStrand.children.length > 0){
         while(ingredientStrand.children.length > 0){