浏览代码

Update the state for inventory check submission.

Lee Morgan 5 年之前
父节点
当前提交
7fb5ffa9d4
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      views/dashboardPage/bundle.js
  2. 2 2
      views/dashboardPage/js/classes/Merchant.js

+ 2 - 2
views/dashboardPage/bundle.js

@@ -319,8 +319,8 @@ class Merchant{
 
         this._ingredients.splice(index, 1);
 
-        home.isPopulated = false;
-        ingredients.isPopulated = false;
+        home.drawInventoryCheckCard();
+        ingredients.populateByProperty();
     }
 
     getIngredient(id){

+ 2 - 2
views/dashboardPage/js/classes/Merchant.js

@@ -203,8 +203,8 @@ class Merchant{
 
         this._ingredients.splice(index, 1);
 
-        home.isPopulated = false;
-        ingredients.isPopulated = false;
+        home.drawInventoryCheckCard();
+        ingredients.populateByProperty();
     }
 
     getIngredient(id){