ソースを参照

Fix bug in searching ingredients

Lee Morgan 6 年 前
コミット
744ae74643
1 ファイル変更1 行追加0 行削除
  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){