瀏覽代碼

Fix bug on recipe page

Lee Morgan 6 年之前
父節點
當前提交
033e6e7a14
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      views/dashboardPage/recipeBook.js

+ 1 - 0
views/dashboardPage/recipeBook.js

@@ -13,6 +13,7 @@ window.recipeBookStrandObj = {
     populateRecipes: function(){
         let recipeList = document.querySelector("#recipeList");
 
+        this.recipeDivList = [];
         while(recipeList.children.length > 0){
             recipeList.removeChild(recipeList.firstChild);
         }