Pārlūkot izejas kodu

Update the state for inventory check submission.

Lee Morgan 5 gadi atpakaļ
vecāks
revīzija
7fb5ffa9d4

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