Explorar o código

Fix bug in searching ingredients

Lee Morgan %!s(int64=6) %!d(string=hai) anos
pai
achega
744ae74643
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      views/dashboardPage/ingredients.js

+ 1 - 0
views/dashboardPage/ingredients.js

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