Parcourir la source

Fix bug in searching ingredients

Lee Morgan il y a 6 ans
Parent
commit
744ae74643
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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){