소스 검색

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){